more morph to smalltile as well

fatstrip works poorly for very wide images
This commit is contained in:
John Cupitt 2013-12-18 11:11:48 +00:00
parent a9f85e1fd9
commit 7f63ecdeb6
2 changed files with 2 additions and 8 deletions

View File

@ -738,10 +738,7 @@ morphology( IMAGE *in, IMAGE *out, INTMASK *mask, MorphOp op )
else
generate = erode_gen;
/* Set demand hints. FATSTRIP is good for us, as THINSTRIP will cause
* too many recalculations on overlaps.
*/
if( im_demand_hint( morph->out, IM_FATSTRIP, morph->in, NULL ) ||
if( im_demand_hint( morph->out, IM_SMALLTILE, morph->in, NULL ) ||
im_generate( morph->out,
morph_start, generate, morph_stop, morph->in, morph ) )
return( -1 );

View File

@ -367,10 +367,7 @@ im_rank_raw( IMAGE *in, IMAGE *out, int xsize, int ysize, int index )
return( -1 );
}
/* Set demand hints. FATSTRIP is good for us, as THINSTRIP will cause
* too many recalculations on overlaps.
*/
if( im_demand_hint( out, IM_FATSTRIP, in, NULL ) )
if( im_demand_hint( out, IM_SMALLTILE, in, NULL ) )
return( -1 );
/* Generate!