Java Code Examples for mpicbg.models.Tile#addMatches()
The following examples show how to use
mpicbg.models.Tile#addMatches() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GlobalOpt.java From SPIM_Registration with GNU General Public License v2.0 | 5 votes |
protected static void addPointMatches( final ArrayList< PointMatchGeneric< Detection > > correspondences, final Tile<?> tileA, final Tile<?> tileB ) { final ArrayList<PointMatch> pm = new ArrayList<PointMatch>(); pm.addAll( correspondences ); if ( correspondences.size() > 0 ) { tileA.addMatches( pm ); tileB.addMatches( PointMatch.flip( pm ) ); tileA.addConnectedTile( tileB ); tileB.addConnectedTile( tileA ); } }
Example 2
Source File: DetectionRegistration.java From SPIM_Registration with GNU General Public License v2.0 | 5 votes |
public synchronized static <T extends AbstractDetection<T>> void addPointMatches( final ArrayList<PointMatchGeneric<T>> correspondences, final Tile<?> tileA, final Tile<?> tileB ) { final ArrayList<PointMatch> pm = new ArrayList<PointMatch>(); pm.addAll( correspondences ); if ( correspondences.size() > 0 ) { tileA.addMatches( pm ); tileB.addMatches( PointMatch.flip( pm ) ); tileA.addConnectedTile( tileB ); tileB.addConnectedTile( tileA ); } }