/** * Gets a new iterator based on the bounds of the image with the * specified key value. * * @param bounds iterator bounds * @return the new iterator * * @throws IllegalArgumentException if this image set is empty or if no * image corresponds to the key value */ public Iterator<K> getIterator(Rectangle bounds) { return new Iterator<K>(this, bounds); }
/** * Gets a value from the first band of each image in this set * and returns them as a {@code Map} of key : value pairs. * * @return image (or outside) values */ public Map<K, Number> getSample() { return getSample(0); }
/** * Advances the iterator to the next position if possible. * * @return {@code true} if the iterator was moved; * {@code false} if it is at the end of its bounds */ public boolean next() { if (hasNext()) { for (SimpleIterator iter : delegates) { iter.next(); } return true; } return false; } }