Package net.sourceforge.jiu.color.analysis

Examples of net.sourceforge.jiu.color.analysis.Histogram3DCreator.process()


  private RGBColorList createColorList(RGB24Image image) throws OperationFailedException
  {
    Histogram3DCreator hc = new Histogram3DCreator();
    hc.setImage(image, RGBIndex.INDEX_RED, RGBIndex.INDEX_GREEN, RGBIndex.INDEX_BLUE);
    hc.process();
    Histogram3D hist = hc.getHistogram();
    if (hist == null)
    {
      throw new OperationFailedException("Could not create histogram from input image.");
    }
View Full Code Here


  private Palette determinePalette() throws OperationFailedException
  {
    Histogram3DCreator hc = new Histogram3DCreator();
    hc.setImage((IntegerImage)getInputImage(), RGBIndex.INDEX_RED, RGBIndex.INDEX_GREEN, RGBIndex.INDEX_BLUE);
    hc.process();
    Histogram3D hist = hc.getHistogram();
    if (hist == null)
    {
      throw new OperationFailedException("Could not create histogram from input image.");
    }
View Full Code Here

    {
      throw new WrongParameterException("Input image must implement RGB24Image.");
    }
    Histogram3DCreator hc = new Histogram3DCreator();
    hc.setImage((IntegerImage)in, RGBIndex.INDEX_RED, RGBIndex.INDEX_GREEN, RGBIndex.INDEX_BLUE);
    hc.process();
    Histogram3D hist = hc.getHistogram();
    if (hist == null)
    {
      throw new OperationFailedException("Could not create histogram from input image.");
    }
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.