@Override public Cursor< T > localizingCursor() { return ii.localizingCursor(); }
@Override public Cursor< T > localizingCursor() { return ii.localizingCursor(); }
@Override public Cursor< LabelingType< L > > localizingCursor() { return m_ii.localizingCursor(); }
@Override public Cursor< T > localizingCursor() { return ii.localizingCursor(); }
@Override public Cursor< T > localizingCursor() { return getFullViewIterableInterval().localizingCursor(); } }
@Override public ConvertedCursor< A, B > localizingCursor() { return new ConvertedCursor< A, B >( sourceInterval.localizingCursor(), converter, converted ); }
@Override public WriteConvertedCursor< A, B > localizingCursor() { return new WriteConvertedCursor< A, B >( sourceInterval.localizingCursor(), converter ); } }
@Override public WriteConvertedCursor< A, B > localizingCursor() { return new WriteConvertedCursor< A, B >( sourceInterval.localizingCursor(), converter ); } }
@Override public ConvertedCursor< A, B > localizingCursor() { return new ConvertedCursor< A, B >( sourceInterval.localizingCursor(), converter, converted ); }
@Override public WriteConvertedCursor< A, B > localizingCursor() { return new WriteConvertedCursor< A, B >( sourceInterval.localizingCursor(), converter ); } }
public IterableIntervalPointSetIterator() { super(interval.numDimensions()); cursor = interval.localizingCursor(); pos = new long[n]; }
@Override public Cursor< T > localizingCursor() { return getFullViewIterableInterval().localizingCursor(); } }
@Override public Cursor< LabelingType< T > > localizingCursor() { return new LabelingConvertedCursor( indexIterable.localizingCursor() ); }
@Override public Cursor< T > localizingCursor() { return new SamplingCursor< T >( sourceInterval.localizingCursor(), target.randomAccess( sourceInterval ) ); }
/** * {@inheritDoc} */ @Override protected void initRegionGrowing( final RandomAccessibleInterval<T> src ) { srcCur = Views.iterable(src).localizingCursor(); srcRA = src.randomAccess(); m_labelNumber = m_synchronizer.aquireNewLabelNumber(); }
@Override public void compute(final IterableInterval<I> input, final O output) { double moment00 = 0; final Cursor<I> cur = input.localizingCursor(); while (cur.hasNext()) { cur.fwd(); double val = cur.get().getRealDouble(); moment00 += val; } output.setReal(moment00); } }
@Override public void execute(DataContainer<T> container) throws MissingPreconditionException { // get the 2 images for the calculation of Spearman's rho RandomAccessibleInterval<T> img1 = container.getSourceImage1(); RandomAccessibleInterval<T> img2 = container.getSourceImage2(); RandomAccessibleInterval<BitType> mask = container.getMask(); TwinCursor<T> cursor = new TwinCursor<T>(img1.randomAccess(), img2.randomAccess(), Views.iterable(mask).localizingCursor()); // calculate Spearman's rho value rhoValue = calculateSpearmanRank(cursor); }
@Override public void execute(DataContainer<T> container) throws MissingPreconditionException { RandomAccessible<T> img1 = container.getSourceImage1(); RandomAccessible<T> img2 = container.getSourceImage2(); RandomAccessibleInterval<BitType> mask = container.getMask(); TwinCursor<T> cursor = new TwinCursor<T>(img1.randomAccess(), img2.randomAccess(), Views.iterable(mask).localizingCursor()); tau = calculateMergeSort(cursor); }
protected void mapSingle( final RandomAccess< A > sourceRandomAccess, final Converter< A, ARGBType > conv ) { final Cursor< ARGBType > targetCursor = target.localizingCursor(); while ( targetCursor.hasNext() ) { targetCursor.fwd(); sourceRandomAccess.setPosition( targetCursor.getLongPosition( 0 ), 0 ); sourceRandomAccess.setPosition( targetCursor.getLongPosition( 1 ), 1 ); conv.convert( sourceRandomAccess.get(), targetCursor.get() ); } } }
protected void mapSingle( final RandomAccess< A > sourceRandomAccess, final Converter< A, ARGBType > conv ) { final Cursor< ARGBType > targetCursor = target.localizingCursor(); while ( targetCursor.hasNext() ) { targetCursor.fwd(); sourceRandomAccess.setPosition( targetCursor.getLongPosition( 0 ), 0 ); sourceRandomAccess.setPosition( targetCursor.getLongPosition( 1 ), 1 ); conv.convert( sourceRandomAccess.get(), targetCursor.get() ); } } }