Package net.sourceforge.jiu.color.data

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


   * @return if this image can be losslessly converted to a Paletted8Image
   */
  private boolean isRgb48Paletted8(RGB48Image in)
  {
    int uniqueColors = 0;
    hist = new OnDemandHistogram3D(255, 255, 255);
    for (int y = 0; y < in.getHeight(); y++)
    {
      for (int x = 0; x < in.getWidth(); x++)
      {
        int red = in.getSample(RGBIndex.INDEX_RED, x, y) >> 8;
View Full Code Here


  }

  private boolean isRgb24Paletted8(RGB24Image in)
  {
    int uniqueColors = 0;
    hist = new OnDemandHistogram3D(255, 255, 255);
    for (int y = 0; y < in.getHeight(); y++)
    {
      for (int x = 0; x < in.getWidth(); x++)
      {
        int red = in.getSample(RGBIndex.INDEX_RED, x, y);
View Full Code Here

          image.getMaxSample(index2) + 1,
          image.getMaxSample(index3) + 1);
      }
      else
      {
        hist = new OnDemandHistogram3D(image.getMaxSample(index1) + 1,
          image.getMaxSample(index2) + 1,
          image.getMaxSample(index3) + 1);
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.jiu.color.data.OnDemandHistogram3D

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.