Package net.sourceforge.jiu.data

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


    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

  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

          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

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

        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

Related Classes of net.sourceforge.jiu.data.MemoryGray16Image

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.