Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private List<Grid.Block> getBlocksToInpaint() {
final List<Interval> nonEmptyMaskBlocks = new ArrayList<>();
for (final Grid.Block block : maskBlocks) {
final IntervalView<FloatType> pixels = Views.interval(mask, block);
for (final FloatType pixel : Views.iterable(pixels)) {
for (final FloatType pixel : pixels) {
if (pixel.get() > 0) {
nonEmptyMaskBlocks.add(block);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private static boolean isInside(final RealLocalizable p, final RealInterval r) {
* @param mask the mask
*/
public void inpaint(final RandomAccessibleInterval<FloatType> img, final RandomAccessibleInterval<FloatType> mask) {
final Cursor<FloatType> imgCursor = Views.iterable(img).localizingCursor();
final Cursor<FloatType> imgCursor = img.localizingCursor();

final RealRandomAccess<FloatType> imageAccess = Views.interpolate(Views.extendBorder(img), new NLinearInterpolatorFactory<>()).realRandomAccess();
final RealRandomAccess<FloatType> maskAccess = Views.interpolate(Views.extendBorder(mask), new NLinearInterpolatorFactory<>()).realRandomAccess();
Expand Down
Loading