code: public static BufferedImage renderLabeled(GrayS32 labelImage, int numRegions, BufferedImage out) {
  
  		int colors[] = new int[numRegions];
  
  		Random rand = new Random(123);
  		for( int i = 0; i < colors.length; i++ ) {
  			colors[i] = rand.nextInt();
  		}
  
  		return renderLabeled(labelImage, colors, out);
  	}
docs: Renders a labeled where each region is assigned a random color.
  
  @param labelImage Labeled image with labels from 0 to numRegions-1
  @param numRegions Number of labeled in the image
  @param out Output image.  If null a new image is declared
  @return Colorized labeled image