public void process(GrayS32 input , GrayS32 output , GrowQueue_I32 regionMemberCount ) {
		// initialize data structures
		this.regionMemberCount = regionMemberCount;
		regionMemberCount.reset();

		setUpEdges(input,output);
		ImageMiscOps.fill(output,-1);

		// this is a bit of a hack here.  Normally you call the parent's init function.
		// since the number of regions is not initially known this will grow
		mergeList.reset();

		connectInner(input, output);
		connectLeftRight(input, output);
		connectBottom(input, output);

		// Merge together all the regions that are connected in the output image
		performMerge(output, regionMemberCount);
	}
public void process ( GrayS32 input , GrayS32 output , GrowQueue_I32 regionMemberCount ) { this . regionMemberCount = regionMemberCount ; regionMemberCount . reset ( ) ; setUpEdges ( input , output ) ; ImageMiscOps . fill ( output , - 1 ) ; mergeList . reset ( ) ; connectInner ( input , output ) ; connectLeftRight ( input , output ) ; connectBottom ( input , output ) ; performMerge ( output , regionMemberCount ) ; }
Relabels the image such that all pixels with the same label are a member of the same graph.

@param input Labeled input image.
@param output Labeled output image.
@param regionMemberCount (Input/Output) Number of pixels which belong to each group.