Examples of Histogram3D


Examples of gov.nist.microanalysis.Utility.Histogram3D

        double yRange = height * dy;
        double yMin = y0 - yRange / 2.0;
        double yMax = y0 + yRange / 2.0;

        distribution =
                new Histogram3D(xMin, xMax, width, yMin, yMax, height, min,
                        max, bins);
    }
View Full Code Here

Examples of net.sourceforge.jiu.color.data.Histogram3D

  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.");
    }
    int numUniqueColors = hist.getNumUsedEntries();
    if (numUniqueColors <= paletteSize)
    {
      throw new WrongParameterException("Input image has only " + numUniqueColors +
        " unique color(s), so it cannot be reduced to " + paletteSize +
        " color(s).");
View Full Code Here

Examples of net.sourceforge.jiu.color.data.Histogram3D

  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.");
    }
    int numUniqueColors = hist.getNumUsedEntries();
    if (numUniqueColors <= paletteSize)
    {
      paletteSize = numUniqueColors;
    }
    RGBColorList list = new RGBColorList(hist);
View Full Code Here

Examples of net.sourceforge.jiu.color.data.Histogram3D

      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.");
    }
    int numUniqueColors = hist.getNumUsedEntries();
    if (numUniqueColors <= paletteSize)
    {
      paletteSize = numUniqueColors;
    }
    arbQuantizer = new ArbitraryPaletteQuantizer(createPalette());
View Full Code Here

Examples of net.sourceforge.jiu.color.data.Histogram3D

      try
      {
        Histogram3DCreator hc = new Histogram3DCreator();
        hc.setImage((RGBIntegerImage)image);
        hc.process();
        Histogram3D hist = hc.getHistogram();
        return new Integer(hist.getNumUsedEntries());
      }
      catch (Exception e)
      {
        return null;
      }
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.