Permalink
Browse files

Add PointCollection to GeomRegions

  • Loading branch information...
awalter17 committed Jan 27, 2017
1 parent 1d60749 commit 9323653be272b4c69fd8724a411661c2040a238d
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/main/java/net/imglib2/roi/geometric/GeomRegions.java
@@ -33,8 +33,10 @@
*/
package net.imglib2.roi.geometric;
import java.util.Collection;
import java.util.List;
import net.imglib2.Localizable;
import net.imglib2.RealLocalizable;
import net.imglib2.RealPoint;
import net.imglib2.realtransform.AffineGet;
@@ -114,6 +116,13 @@ public static RealPoint point( final float... position )
return new RealPoint( position );
}
// -- Create PointCollection --
public static PointCollection pointCollection( final Collection< ? extends Localizable > vertices )
{
return new PointCollection( vertices );
}
// -- Helper methods --
private static AffineGet createAffineMatrix( final RealLocalizable center, final double[][] rotationMatrix, final int dim )

0 comments on commit 9323653

Please sign in to comment.