Package ij.process

Examples of ij.process.MedianCut.convert()


   **************************************************************************/

  ImageProcessor reduceColors(ImageProcessor ip) {
    MedianCut mc = new MedianCut((int[]) ip.getPixels(), ip.getWidth(), ip
        .getHeight());
    Image img = mc.convert(256);
    return (new ByteProcessor(img));
  }

}
View Full Code Here


     * method : reduceColors, reduces the color range for the appropriate format *
     ****************************************************************************/
   
    ImageProcessor reduceColors(ImageProcessor ip) {
        MedianCut mc = new MedianCut((int[])ip.getPixels(), ip.getWidth(), ip.getHeight());
        Image img = mc.convert(256);
        return(new ByteProcessor(img));
    }

 
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.