@@ -436,7 +436,7 @@ public static void refine(
436436 }
437437
438438 // load & transform all interest points
439- final Map < ViewId , HashMap < String , List < InterestPoint > > > interestpoints =
439+ final Map < ViewId , HashMap < String , Collection < InterestPoint > > > interestpoints =
440440 TransformationTools .getAllTransformedInterestPoints (
441441 params .viewIds ,
442442 data .getViewRegistrations ().getViewRegistrations (),
@@ -519,7 +519,7 @@ public static void refine(
519519 public static final HashMap < ViewId , mpicbg .models .Tile > pairSubset (
520520 final SpimData2 spimData ,
521521 final Subset < ViewId > subset ,
522- final Map < ViewId , HashMap < String , List < InterestPoint > > > interestpoints ,
522+ final Map < ViewId , HashMap < String , Collection < InterestPoint > > > interestpoints ,
523523 final Map < ViewId , HashMap < String , Double > > labelMap ,
524524 final IterativeClosestPointParameters icpp ,
525525 final List < ViewId > fixedViews ,
@@ -594,6 +594,7 @@ public static final HashMap< ViewId, mpicbg.models.Tile > pairSubset(
594594 {
595595 models = (HashMap < ViewId , mpicbg .models .Tile >)(Object )GlobalOpt .computeTiles (
596596 (Model )(Object )icpp .getModel ().copy (),
597+ globalOptParameters .preAlign ,
597598 pmc ,
598599 new ConvergenceStrategy ( icpp .getMaxDistance () ),
599600 fixedViews ,
@@ -603,6 +604,7 @@ else if ( globalOptParameters.method == GlobalOptType.ONE_ROUND_ITERATIVE )
603604 {
604605 models = (HashMap < ViewId , mpicbg .models .Tile >)(Object )GlobalOptIterative .computeTiles (
605606 (Model )(Object )icpp .getModel ().copy (),
607+ globalOptParameters .preAlign ,
606608 pmc ,
607609 new SimpleIterativeConvergenceStrategy ( icpp .getMaxDistance (), globalOptParameters .relativeThreshold , globalOptParameters .absoluteThreshold ),
608610 new MaxErrorLinkRemoval (),
@@ -614,6 +616,7 @@ else if ( globalOptParameters.method == GlobalOptType.ONE_ROUND_ITERATIVE )
614616 {
615617 models = (HashMap < ViewId , mpicbg .models .Tile >)(Object )GlobalOptTwoRound .computeTiles (
616618 (Model & Affine3D )(Object )icpp .getModel ().copy (),
619+ globalOptParameters .preAlign ,
617620 pmc ,
618621 new SimpleIterativeConvergenceStrategy ( icpp .getMaxDistance (), globalOptParameters .relativeThreshold , globalOptParameters .absoluteThreshold ), // if it's simple, both will be Double.MAX
619622 new MaxErrorLinkRemoval (),
@@ -635,7 +638,7 @@ else if ( globalOptParameters.method == GlobalOptType.ONE_ROUND_ITERATIVE )
635638 public static HashMap < ViewId , mpicbg .models .Tile > groupedSubset (
636639 final SpimData2 spimData ,
637640 final Subset < ViewId > subset ,
638- final Map < ViewId , HashMap < String , List < InterestPoint > > > interestpoints ,
641+ final Map < ViewId , HashMap < String , Collection < InterestPoint > > > interestpoints ,
639642 final Map < ViewId , HashMap < String , Double > > labelMap ,
640643 final IterativeClosestPointParameters icpp ,
641644 final List < ViewId > fixedViews ,
@@ -646,7 +649,7 @@ public static HashMap< ViewId, mpicbg.models.Tile > groupedSubset(
646649 final boolean matchAcrossLabels )
647650 {
648651 final List < Pair < Group < ViewId >, Group < ViewId > > > groupedPairs = subset .getGroupedPairs ();
649- final Map < Group < ViewId >, HashMap < String , List < GroupedInterestPoint < ViewId > > > > groupedInterestpoints = new HashMap <>();
652+ final Map < Group < ViewId >, HashMap < String , Collection < GroupedInterestPoint < ViewId > > > > groupedInterestpoints = new HashMap <>();
650653 final InterestPointGrouping < ViewId > ipGrouping = new InterestPointGroupingMinDistance <>( interestpoints );
651654
652655 if ( groupedPairs .size () <= 0 )
@@ -714,6 +717,7 @@ public static HashMap< ViewId, mpicbg.models.Tile > groupedSubset(
714717 {
715718 models = (HashMap < ViewId , mpicbg .models .Tile >)(Object )GlobalOpt .computeTiles (
716719 (Model )(Object )icpp .getModel ().copy (),
720+ globalOptParameters .preAlign ,
717721 pmc ,
718722 new ConvergenceStrategy ( icpp .getMaxDistance () ),
719723 fixedViews ,
@@ -723,6 +727,7 @@ else if ( globalOptParameters.method == GlobalOptType.ONE_ROUND_ITERATIVE )
723727 {
724728 models = (HashMap < ViewId , mpicbg .models .Tile >)(Object )GlobalOptIterative .computeTiles (
725729 (Model )(Object )icpp .getModel ().copy (),
730+ globalOptParameters .preAlign ,
726731 pmc ,
727732 new SimpleIterativeConvergenceStrategy ( icpp .getMaxDistance (), globalOptParameters .relativeThreshold , globalOptParameters .absoluteThreshold ),
728733 new MaxErrorLinkRemoval (),
@@ -734,6 +739,7 @@ else if ( globalOptParameters.method == GlobalOptType.ONE_ROUND_ITERATIVE )
734739 {
735740 models = (HashMap < ViewId , mpicbg .models .Tile >)(Object )GlobalOptTwoRound .computeTiles (
736741 (Model & Affine3D )(Object )icpp .getModel ().copy (),
742+ globalOptParameters .preAlign ,
737743 pmc ,
738744 new SimpleIterativeConvergenceStrategy ( icpp .getMaxDistance (), globalOptParameters .relativeThreshold , globalOptParameters .absoluteThreshold ), // if it's simple, both will be Double.MAX
739745 new MaxErrorLinkRemoval (),
0 commit comments