This commit is contained in:
John Cupitt 2009-11-09 14:58:42 +00:00
parent 7b3c7f8851
commit 1d10569f0f
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ im_label_regions( IMAGE *test, IMAGE *mask, int *segments )
/* Search the mask image, flooding as we find zero pixels.
*/
if( im_rwcheck( t[1] ) )
return( -1 );
serial = 0;
m = (int *) t[1]->data;
for( y = 0; y < test->Ysize; y++ ) {