population_sacha/class_RLE_Image.cpp
// Output into a (binary) Mat2UI8 image

Output into a (binary) Mat2UI8 image
Output into a ( binary ) Mat2UI8 image
pop::Mat2UI8 RLE_Image::output()
{
	int i;
	int k;
	pop::Mat2UI8 output_image(size_i, size_j);
	output_image.fill(0);
	for (k=0; k<runs_number; k++)
	{
		for (i=image_runs[k]->iLeft; i<=image_runs[k]->iRight; i++)
			output_image(i, image_runs[k]->j)=255;
	}
	return output_image;
}
pop :: Mat2UI8 RLE_Image :: output ( ) { int i ; int k ; pop :: Mat2UI8 output_image ( size_i , size_j ) ; output_image . fill ( 0 ) ; for ( k = 0 ; k < runs_number ; k ++ ) { for ( i = image_runs [ k ] -> iLeft ; i <= image_runs [ k ] -> iRight ; i ++ ) output_image ( i , image_runs [ k ] -> j ) = 255 ; } return output_image ; }
Output into a (binary) Mat2UI8 image
Output into a ( binary ) Mat2UI8 image
// Local variables
 //int j;
 // Initialization
