im_min() fix
This commit is contained in:
parent
ffea411943
commit
6bd95a7db2
@ -305,7 +305,7 @@ im__value( IMAGE *im, double *value )
|
||||
IMAGE *t;
|
||||
|
||||
if( !(t = im_open_local( im, "im__value", "p" )) ||
|
||||
im_extract_area( im, t, 0, 0, 1, 1 ) ||
|
||||
im_extract_areabands( im, t, 0, 0, 1, 1, 0, 1 ) ||
|
||||
im_avg( t, value ) )
|
||||
return( -1 );
|
||||
|
||||
|
@ -96,7 +96,7 @@ minpos_stop( void *seq, void *a, void *b )
|
||||
|
||||
/* Merge.
|
||||
*/
|
||||
if( minpos->min > global_minpos->min )
|
||||
if( minpos->min < global_minpos->min )
|
||||
*global_minpos = *minpos;
|
||||
|
||||
im_free( seq );
|
||||
|
Loading…
Reference in New Issue
Block a user