Package net.sourceforge.jiu.ops

Examples of net.sourceforge.jiu.ops.WrongParameterException


    {
      process((Paletted8Image)in, (Paletted8Image)getOutputImage());
    }
    else
    {
      throw new WrongParameterException("Brightness operation cannot operate on input image type: " + in.getClass());
    }
  }
View Full Code Here


    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
    PixelImage in = getInputImage();
    if (!(in instanceof RGB24Image))
    {
      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();
View Full Code Here

    {
      throw new MissingParameterException("Input image needed.");
    }
    if (!(pi instanceof RGB24Image))
    {
      throw new WrongParameterException("Input image must be of type RGB24Image.");
    }
    initOctree();
    pruneOctree();
  }
View Full Code Here

    {
      process((IntegerImage)in, (IntegerImage)getOutputImage());
    }
    else
    {
      throw new WrongParameterException("Input image must be of type IntegerImage.");
    }
  }
View Full Code Here

  private void checkBounds() throws WrongParameterException
  {
    PixelImage in = getInputImage();
    if (x1 >= in.getWidth())
    {
      throw new WrongParameterException("x1 must be smaller than input image width.");
    }
    if (x2 >= in.getWidth())
    {
      throw new WrongParameterException("x2 must be smaller than input image width.");
    }
    if (y1 >= in.getHeight())
    {
      throw new WrongParameterException("y1 must be smaller than input image height.");
    }
    if (y2 >= in.getHeight())
    {
      throw new WrongParameterException("y2 must be smaller than input image height.");
    }
  }
View Full Code Here

    {
      process((IntegerImage)getInputImage(), (IntegerImage)getOutputImage());
    }
    else
    {
      throw new WrongParameterException("Input image must implement IntegerImage.");
    }
  }
View Full Code Here

    {
      process((IntegerImage)in, (IntegerImage)getOutputImage());
    }
    else
    {
      throw new WrongParameterException("Input image must implement IntegerImage.");
    }
  }
View Full Code Here

    {
      process((IntegerImage)image, (IntegerImage)getOutputImage());
    }
    else
    {
      throw new WrongParameterException("Input image must implement IntegerImage.");
    }
  }
View Full Code Here

    {
      process((IntegerImage)in, (IntegerImage)getOutputImage());
    }
    else
    {
      throw new WrongParameterException("Input image must implement IntegerImage.");
    }
  }
View Full Code Here

    while (index < inputImages.size())
    {
      in = getInputImage(index);
      if (in.getWidth() != width)
      {
        throw new WrongParameterException("Width of images #0 and #" + index + " are not equal.");
      }
      if (in.getHeight() != height)
      {
        throw new WrongParameterException("Height of images #0 and #" + index + " are not equal.");
      }
      index++;
    }   
    PixelImage out = getOutputImage();
    if (out != null)
    {
      if (out.getWidth() != width)
      {
        throw new WrongParameterException("Width of input images #0 and output image are not equal.");
      }
      if (out.getHeight() != height)
      {
        throw new WrongParameterException("Height of input images #0 and output image are not equal.");
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.jiu.ops.WrongParameterException

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.