more testing
now fails for large square masks
This commit is contained in:
parent
ab06ba8a1b
commit
d0cb80b341
@ -50,6 +50,10 @@
|
|||||||
|
|
||||||
TODO
|
TODO
|
||||||
|
|
||||||
|
- tried a 201x201 mask, sigmal 44.6, minamp 0.1, does not seem to
|
||||||
|
read the whole mask? we get only 37638 elements, max and min are
|
||||||
|
messed up
|
||||||
|
|
||||||
- are we handling mask offset correctly?
|
- are we handling mask offset correctly?
|
||||||
|
|
||||||
*/
|
*/
|
||||||
@ -300,7 +304,7 @@ boxes_new( IMAGE *in, IMAGE *out, DOUBLEMASK *mask, int n_layers, int cluster )
|
|||||||
*/
|
*/
|
||||||
if( im_piocheck( in, out ) ||
|
if( im_piocheck( in, out ) ||
|
||||||
im_check_uncoded( "im_aconv", in ) ||
|
im_check_uncoded( "im_aconv", in ) ||
|
||||||
vips_check_dmask_1d( "im_aconv", mask ) )
|
vips_check_dmask( "im_aconv", mask ) )
|
||||||
return( NULL );
|
return( NULL );
|
||||||
|
|
||||||
if( !(boxes = VIPS_NEW( out, Boxes )) )
|
if( !(boxes = VIPS_NEW( out, Boxes )) )
|
||||||
@ -326,6 +330,8 @@ boxes_new( IMAGE *in, IMAGE *out, DOUBLEMASK *mask, int n_layers, int cluster )
|
|||||||
min = IM_MIN( min, mask->coeff[n] );
|
min = IM_MIN( min, mask->coeff[n] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VIPS_DEBUG_MSG( "boxes_new: min = %g, max = %g\n", min, max );
|
||||||
|
|
||||||
/* The zero axis must fall on a layer boundary. Estimate the
|
/* The zero axis must fall on a layer boundary. Estimate the
|
||||||
* depth, find n-lines-above-zero, get exact depth, then calculate a
|
* depth, find n-lines-above-zero, get exact depth, then calculate a
|
||||||
* fixed n-lines which includes any negative parts.
|
* fixed n-lines which includes any negative parts.
|
||||||
@ -592,9 +598,6 @@ aconv_hgenerate( REGION *or, void *vseq, void *a, void *b )
|
|||||||
int istride;
|
int istride;
|
||||||
int ostride;
|
int ostride;
|
||||||
|
|
||||||
printf( "aconv_hgenerate: left %d top %d width %d height %d\n",
|
|
||||||
r->left, r->top, r->width, r->height );
|
|
||||||
|
|
||||||
/* Prepare the section of the input image we need. A little larger
|
/* Prepare the section of the input image we need. A little larger
|
||||||
* than the section of the output image we are producing.
|
* than the section of the output image we are producing.
|
||||||
*/
|
*/
|
||||||
@ -757,9 +760,6 @@ aconv_vgenerate( REGION *or, void *vseq, void *a, void *b )
|
|||||||
int istride;
|
int istride;
|
||||||
int ostride;
|
int ostride;
|
||||||
|
|
||||||
printf( "aconv_vgenerate: left %d top %d width %d height %d\n",
|
|
||||||
r->left, r->top, r->width, r->height );
|
|
||||||
|
|
||||||
/* Prepare the section of the input image we need. A little larger
|
/* Prepare the section of the input image we need. A little larger
|
||||||
* than the section of the output image we are producing.
|
* than the section of the output image we are producing.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user