Examples of MemoryGray16Image


Examples of net.sourceforge.jiu.data.MemoryGray16Image

      throw new WrongParameterException("Unsupported input image type: " + in.getClass().getName());
    }
    PixelImage out = getOutputImage();
    if (out == null)
    {
      setOutputImage(new MemoryGray16Image(in.getWidth(), in.getHeight()));
    }
    else
    {
      if (!(out instanceof Gray16Image))
      {
View Full Code Here

Examples of net.sourceforge.jiu.data.MemoryGray16Image

    if (gray16)
    {
      PixelImage out = getOutputImage();
      if (out == null)
      {
        out = new MemoryGray16Image(in.getWidth(), in.getHeight());
      }
      else
      {
        if (destBits.intValue() <= 8 && !(out instanceof Gray8Image))
        {
View Full Code Here

Examples of net.sourceforge.jiu.data.MemoryGray16Image

  private void process(RGB48Image in) throws WrongParameterException
  {
    PixelImage out = getOutputImage();
    if (out == null)
    {
      out = new MemoryGray16Image(in.getWidth(), in.getHeight());
    }
    else
    {
      if (!(out instanceof Gray16Image))
      {
View Full Code Here

Examples of net.sourceforge.jiu.data.MemoryGray16Image

          image = new MemoryGray8Image(width, height);
          break;
        }
        case(TIFFImageFileDirectory.TYPE_GRAY16):
        {
          image = new MemoryGray16Image(width, height);
          break;
        }
        case(TIFFImageFileDirectory.TYPE_PALETTED4):
        case(TIFFImageFileDirectory.TYPE_PALETTED8):
        {
View Full Code Here

Examples of net.sourceforge.jiu.data.MemoryGray16Image

        image = new MemoryGray8Image(w, h);
      }
      else
      if (precision == 16)
      {
        image = new MemoryGray16Image(w, h);
      }
    }
    else
    if (colorType == COLOR_TYPE_INDEXED)
    {
View Full Code Here

Examples of net.sourceforge.jiu.data.MemoryGray16Image

        pimage = new MemoryGray8Image(WIDTH, HEIGHT);
      }
      else
      if (maxSample < 65536)
      {
        pimage = new MemoryGray16Image(WIDTH, HEIGHT);
      }
      else
      {
        throw new UnsupportedTypeException("Gray images with more than 16 bits per pixel are not supported.");
      }
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.