Package ij.process

Examples of ij.process.ByteProcessor


  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


     ****************************************************************************/
   
    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

      sceneImage  = new BufferedImage( width, height, BufferedImage.TYPE_INT_RGB);
      pixels    = ((DataBufferInt)sceneImage.getRaster().getDataBuffer()).getData();
      gc      = sceneImage.createGraphics();
     
      bwImage    = new ImagePlus(null, bwProcessor = new ByteProcessor(width,height));
      //bwImage.trimProcessor();
     
      firstTime = false;
    }
   
View Full Code Here

TOP

Related Classes of ij.process.ByteProcessor

Copyright © 2018 www.massapicom. 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.