Package net.sourceforge.jiu.ops

Examples of net.sourceforge.jiu.ops.MissingParameterException


    MissingParameterException,
    WrongParameterException
  {
    if (in == null)
    {
      throw new MissingParameterException("Missing input image.");
    }
    if (!
         (
          (in instanceof BilevelImage)
         )
View Full Code Here


    if (in instanceof RGB24Image)
    {
      init(templateData, in.getWidth());
      if (quantizer == null)
      {
        throw new MissingParameterException("No quantizer was specified.");
      }
      if (useTruecolorOutput)
      {
        process((RGB24Image)in, (RGB24Image)out);
      }
View Full Code Here

    MissingParameterException,
    WrongParameterException 
  {
    if (areaWidth == 0)
    {
      throw new MissingParameterException("Area width has not been initialized.");
    }
    if (areaHeight == 0)
    {
      throw new MissingParameterException("Area height has not been initialized.");
    }
    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
    PixelImage in = getInputImage();
    PixelImage out = getOutputImage();
View Full Code Here

    MissingParameterException,
    WrongParameterException
  {
    if (in == null)
    {
      throw new MissingParameterException("Missing input image.");
    }
    if (!
         (
          (in instanceof BilevelImage) ||
          (in instanceof Gray8Image)
View Full Code Here

  public void process() throws MissingParameterException, WrongParameterException
  {
    if (destBits == null)
    {
      throw new MissingParameterException("The number of destination bits has not been specified.");
    }
    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
    PixelImage in = getInputImage();
    boolean gray8 = in instanceof Gray8Image;
View Full Code Here

  public void process() throws MissingParameterException, OperationFailedException, WrongParameterException
  {
    if (quantizer == null)
    {
      throw new MissingParameterException("No MedianCutQuantizer object was specified.");
    }
    ensureInputImageIsAvailable();
    PixelImage pixelImage = getInputImage();
    if (!(pixelImage instanceof RGB24Image))
    {
View Full Code Here

  public void process() throws MissingParameterException, WrongParameterException
  {
    if (destBits == null)
    {
      throw new MissingParameterException(
        "The number of destination bits has not been specified.");
    }
    int bits = destBits.intValue();
    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
View Full Code Here

    WrongParameterException
  {
    PixelImage in = getInputImage();
    if (in == null)
    {
      throw new MissingParameterException("Input image missing.");
    }
    if (!(in instanceof GrayIntegerImage))
    {
      throw new WrongParameterException("Input image must implement GrayIntegerImage.");
    }
View Full Code Here

    WrongParameterException
  {
    PixelImage in = getInputImage();
    if (in == null)
    {
      throw new MissingParameterException("Input image missing.");
    }
    PixelImage out = getOutputImage();
    if (out == null)
    {
      out = in.createCompatibleImage(in.getWidth(), in.getHeight());
View Full Code Here

    MissingParameterException,
    WrongParameterException
  {
    if (inputImage == null)
    {
      throw new MissingParameterException("No input image available");
    }
    // GRAY8
    if (inputImage instanceof Gray8Image)
    {
      if (isGrayBilevel((Gray8Image)inputImage))
View Full Code Here

TOP

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

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.