Package net.sourceforge.jiu.ops

Examples of net.sourceforge.jiu.ops.MissingParameterException


    IOException,
    MissingParameterException
  {
    if (tileIndex < 0)
    {
      throw new MissingParameterException("Tile index was not initialized.");
    }
    if (codec == null)
    {
      throw new MissingParameterException("No TIFFCodec object was given to this decoder.");
    }
    if (ifd == null)
    {
      throw new MissingParameterException("No TIFFImageFileDirectory object was given to this decoder.");
    }

    RandomAccessFile raf = codec.getRandomAccessFile();
    long offset = ifd.getTileOffset(tileIndex) & 0x00000000ffffffffL;
    raf.seek(offset);
View Full Code Here


    MissingParameterException,
    WrongParameterException
  {
    if (image == null)
    {
      throw new MissingParameterException("Image parameter missing.");
    }
    createHistogramIfNecessary();
    if (hist.getMaxValue() < image.getMaxSample(channelIndex))
    {
      throw new WrongParameterException("Histogram does not have enough entries.");
View Full Code Here

  public void process() throws
    MissingParameterException
  {
    if (matrix == null)
    {
      throw new MissingParameterException("No input co-occurrence matrix was provided.");
    }
    final int DIMENSION = matrix.getDimension();
    int items = 0;
    final int TOTAL_ITEMS = DIMENSION * 3;
    // initialize mu_i and mu_j
View Full Code Here

    MissingParameterException,
    WrongParameterException
  {
    if (image == null)
    {
      throw new MissingParameterException("Image parameter missing.");
    }
    createHistogramIfNecessary();
    if (hist.getMaxValue(0) < image.getMaxSample(index1) ||
        hist.getMaxValue(1) < image.getMaxSample(index2) ||
        hist.getMaxValue(2) < image.getMaxSample(index3))
View Full Code Here

  public void process() throws MissingParameterException, WrongParameterException
  {
    if (image1 == null)
    {
      throw new MissingParameterException("You must specify images using setImages.");
    }
    boolean sameType = image1.getImageType() == image2.getImageType();
    if (image1 instanceof RGB24Image && image2 instanceof Paletted8Image)
    {
      process((RGB24Image)image1, (Paletted8Image)image2);
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.