Package javax.media.jai.iterator

Examples of javax.media.jai.iterator.WritableRectIter.finishedBands()


    //
    // Prepare the iterator to work on the correct bands, if this is
    // requested.
    //
    // ////////////////////////////////////////////////////////////////////
    if (!iterator.finishedBands()) {
      for (int i = 0; i < bandIndex; i++)
        iterator.nextBand();
    }

    // ////////////////////////////////////////////////////////////////////
View Full Code Here


        throw  new ImagingException(
            cause.getLocalizedMessage(),cause);
      }
      if (bandIndex != -1)
        break;
    } while (iterator.finishedBands());
  }

  // ///////////////////////////////////////////////////////////////////////////////
  // ////// ////////
  // ////// REGISTRATION OF "SampleTranscode" IMAGE OPERATION ////////
View Full Code Here

            cause.getLocalizedMessage());
        exception.initCause(cause);
        throw exception;
      }
      bandNumber++;
    } while (iterator.finishedBands());
  }


  private PiecewiseTransform1DElement domainSearch(final WritableRectIter iterator,
      PiecewiseTransform1DElement last, final int bandNumber) throws TransformException {
View Full Code Here

            // TODO: Detect if source and destination rasters are the same. If they are
            //       the same, we should skip this block. Iteration will then be faster.
            iterator = TransfertRectIter.create(RectIterFactory.create(source, bounds), iterator);
        }
        int band = 0;
        if (!iterator.finishedBands()) do {
            categories[band++].transform(iterator);
        }
        while (!iterator.nextBandDone());
        assert band == categories.length : band;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.