Package net.sourceforge.jiu.data

Examples of net.sourceforge.jiu.data.PixelImage


         )
       )
    {
      throw new WrongParameterException("Unsupported input image type: " + in.getClass().getName());
    }
    PixelImage out = getOutputImage();
    if (out == null)
    {
      setOutputImage(new MemoryGray8Image(in.getWidth(), in.getHeight()));
    }
    else
    {
      if (!(out instanceof Gray8Image))
      {
        throw new WrongParameterException("Specified output image type must be of class Gray8Image; got " + in.getClass().getName());
      }
      if (in.getWidth() != out.getWidth())
      {
        throw new WrongParameterException("Specified output image must have same width as input image.");
      }
      if (in.getHeight() != out.getHeight())
      {
        throw new WrongParameterException("Specified output image must have same height as input image.");
      }
    }
  }
View Full Code Here


  public void process() throws
    MissingParameterException,
    WrongParameterException
  {
    PixelImage in = getInputImage();
    prepare(in);
    Gray8Image out = (Gray8Image)getOutputImage();
    if (in instanceof BilevelImage)
    {
      process((BilevelImage)in, out);
View Full Code Here

    MissingParameterException,
    WrongParameterException
  {
    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
    PixelImage in = getInputImage();
    if (in instanceof GrayIntegerImage || in instanceof RGBIntegerImage)
    {
      PixelImage out = getOutputImage();
      if (out == null)
      {
        out = (IntegerImage)in.createCompatibleImage(in.getWidth(), in.getHeight());
        setOutputImage(out);
      }
View Full Code Here

    MissingParameterException,
    WrongParameterException
  {
    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
    PixelImage in = getInputImage();
    PixelImage out = getOutputImage();
    if (in instanceof Gray8Image)
    {
      init(templateData, in.getWidth());
      if (grayBits == 1)
      {
View Full Code Here

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

    MissingParameterException,
    WrongParameterException
  {
    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
    PixelImage in = getInputImage();
    PixelImage out = getOutputImage();
    if (in instanceof RGB24Image)
    {
      int sum = redBits + greenBits + blueBits;
      if (sum > 8)
      {
View Full Code Here

  public void process() throws
    MissingParameterException,
    WrongParameterException
  {
    ensureInputImageIsAvailable();
    PixelImage in = getInputImage();
    prepare(in);
    RGB48Image out = (RGB48Image)getOutputImage();
    if (in instanceof BilevelImage)
    {
      process((BilevelImage)in, out);
View Full Code Here

    {
      throw new MissingParameterException("Area height has not been initialized.");
    }
    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
    PixelImage in = getInputImage();
    PixelImage out = getOutputImage();
    if (in instanceof GrayIntegerImage || in instanceof RGBIntegerImage)
    {
      process((IntegerImage)in, (IntegerImage)out);
    }
    else
View Full Code Here

         )
       )
    {
      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))
      {
        throw new WrongParameterException("Specified output image type must be of class Gray16Image; got " + in.getClass().getName());
      }
      if (in.getWidth() != out.getWidth())
      {
        throw new WrongParameterException("Specified output image must have same width as input image.");
      }
      if (in.getHeight() != out.getHeight())
      {
        throw new WrongParameterException("Specified output image must have same height as input image.");
      }
    }
  }
View Full Code Here

  public void process() throws
    MissingParameterException,
    WrongParameterException
  {
    PixelImage in = getInputImage();
    prepare(in);
    Gray16Image out = (Gray16Image)getOutputImage();
    if (in instanceof BilevelImage)
    {
      process((BilevelImage)in, out);
View Full Code Here

TOP

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

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.