code: public static BufferedImage regionBorders( GrayS32 pixelToRegion ,
  											   int borderColor ,
  											   BufferedImage output ) {
  		if( output == null )
  			output = new BufferedImage(pixelToRegion.width,pixelToRegion.height,BufferedImage.TYPE_INT_RGB);
  
  		GrayU8 binary = new GrayU8(pixelToRegion.width,pixelToRegion.height);
  		ImageSegmentationOps.markRegionBorders(pixelToRegion, binary);
  		for( int y = 0; y < binary.height; y++ ) {
  			for( int x = 0; x < binary.width; x++ ) {
  				if( binary.unsafe_get(x,y) == 1 )  {
  					output.setRGB(x,y,borderColor);
  				}
  			}
  		}
  
  		return output;
  	}
docs: Draws border pixels of each region using the specified color.
  
  @param pixelToRegion Conversion from pixel to region
  @param borderColor RGB value of border pixel
  @param output Storage for output image.  Can be null.
  @return Output image.