Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • ida-public/zellige-core
1 result
Show changes
Showing
with 725 additions and 613 deletions
...@@ -170,7 +170,7 @@ public class Interpolation ...@@ -170,7 +170,7 @@ public class Interpolation
private Img< UnsignedShortType > execute( RandomAccessibleInterval< UnsignedShortType > input, int dimension ) private Img< UnsignedShortType > execute( RandomAccessibleInterval< UnsignedShortType > input, int dimension )
{ {
ImgFactory< UnsignedShortType > factory = new ArrayImgFactory<>( new UnsignedShortType() ); ImgFactory< UnsignedShortType > factory = new ArrayImgFactory<>( new UnsignedShortType() );
Img< UnsignedShortType > interpolated = factory.create( input ); Img< UnsignedShortType > interpolated = factory.create( input.dimensionsAsLongArray() );
ImgUtil.copy( input, interpolated ); ImgUtil.copy( input, interpolated );
RandomAccess< UnsignedShortType > interpolatedAccess = interpolated.randomAccess(); RandomAccess< UnsignedShortType > interpolatedAccess = interpolated.randomAccess();
RandomAccess< UnsignedShortType > zMapAccess = input.randomAccess(); RandomAccess< UnsignedShortType > zMapAccess = input.randomAccess();
......