Skip to content

Commit

Permalink
small fixes, tested again for slab=1, slab=2
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPreibisch committed Aug 1, 2024
1 parent 776827b commit 053bdbf
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ else if ( mpicbg.trakem2.transform.AffineModel2D.class.isInstance( m ) )
} );
}

RandomAccessibleInterval<UnsignedByteType> img =
RecapKensAlignmentTools.render(
models.get( slices.get( 2 ) ).transformedImages,
new FinalInterval( new long[] { 0, 0 }, new long[] { slabWidth - 1, slabHeight - 1 } ) );
ImageJFunctions.show( img );
SimpleMultiThreading.threadHaltUnClean();
//RandomAccessibleInterval<UnsignedByteType> img =
// RecapKensAlignmentTools.render(
// models.get( slices.get( 2 ) ).transformedImages,
// new FinalInterval( new long[] { 0, 0 }, new long[] { slabWidth - 1, slabHeight - 1 } ) );
//ImageJFunctions.show( img );
//SimpleMultiThreading.threadHaltUnClean();

//
// Crop to 12500 x 12500
Expand Down Expand Up @@ -352,17 +352,16 @@ else if ( mpicbg.trakem2.transform.AffineModel2D.class.isInstance( m ) )

public static void main( String[] args )
{
new ImageJ();

for ( int i = 0; i < 3; ++i )
System.out.println( );
//new ImageJ();

// the slab (in real image order)
final int slab = 1;
final int slab = 2;

// the filename/directoryname to load data from
final int stageIdPlus1 = RecapKensAlignmentTools.findStageIdPlus1( new File( magC, "scan_005.csv" ), slab );

System.out.println( "slab: " + slab + ", stageId+1: " + stageIdPlus1 );

// this number is not the slab but a stage id + 1, we need to figure out the actual slab number from that
HashMap<Integer, TransformedZLayer> models = reconstruct( stageIdPlus1 );

Expand Down

0 comments on commit 053bdbf

Please sign in to comment.