im_min() fix

This commit is contained in:
John Cupitt 2009-09-08 18:31:53 +00:00
parent ffea411943
commit 6bd95a7db2
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -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 );