Class TransformVirtual
java.lang.Object
net.preibisch.mvrecon.process.fusion.transformed.TransformVirtual
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjustAllTransforms(Collection<? extends mpicbg.spim.data.sequence.ViewId> viewIds, Map<mpicbg.spim.data.sequence.ViewId, ? extends mpicbg.spim.data.registration.ViewRegistration> registrations, double anisotropyFactor, double downsampling) Collects all ViewRegistrations, updates them, and potentially adds anisotropy and downsampling transformationsadjustAllTransforms(Map<mpicbg.spim.data.sequence.ViewId, ? extends net.imglib2.realtransform.AffineTransform3D> registrations, double anisotropyFactor, double downsampling) Updates existing transformations with anisotropy and downsampling transformationsstatic net.imglib2.IntervalscaleBoundingBox(net.imglib2.Interval boundingBox, double factor) Scale the bounding box (use with scaleTransform so it is the right image, but just smaller)static net.imglib2.IntervalscaleBoundingBox(net.imglib2.Interval boundingBox, double[] factors) static net.imglib2.IntervalscaleBoundingBox(net.imglib2.Interval boundingBox, double factor, double[] offset) static voidscaleTransform(net.imglib2.realtransform.AffineTransform3D t, double factor) Scale the affine transform (use with scaleBoundingBox so it is the right image, but just smaller)static voidscaleTransform(net.imglib2.realtransform.AffineTransform3D t, double[] factors)
-
Constructor Details
-
TransformVirtual
public TransformVirtual()
-
-
Method Details
-
adjustAllTransforms
public static HashMap<mpicbg.spim.data.sequence.ViewId,net.imglib2.realtransform.AffineTransform3D> adjustAllTransforms(Collection<? extends mpicbg.spim.data.sequence.ViewId> viewIds, Map<mpicbg.spim.data.sequence.ViewId, ? extends mpicbg.spim.data.registration.ViewRegistration> registrations, double anisotropyFactor, double downsampling) Collects all ViewRegistrations, updates them, and potentially adds anisotropy and downsampling transformations- Parameters:
viewIds- - all ViewIds to processregistrations- - all ViewRegistrationsanisotropyFactor- - a factor applied to z only (e.g. 3, or Double.NaN)downsampling- - a factor applied to xyz (e.g. 3, or Double.NaN)- Returns:
- adjusted transformations
-
adjustAllTransforms
public static HashMap<mpicbg.spim.data.sequence.ViewId,net.imglib2.realtransform.AffineTransform3D> adjustAllTransforms(Map<mpicbg.spim.data.sequence.ViewId, ? extends net.imglib2.realtransform.AffineTransform3D> registrations, double anisotropyFactor, double downsampling) Updates existing transformations with anisotropy and downsampling transformations- Parameters:
registrations- - all registrationsanisotropyFactor- - a factor applied to z only (e.g. 3, or Double.NaN)downsampling- - a factor applied to xyz (e.g. 3, or Double.NaN)- Returns:
- a copy of potentially updated transformations
-
scaleTransform
Scale the affine transform (use with scaleBoundingBox so it is the right image, but just smaller)- Parameters:
t- transformfactor- scaling factor
-
scaleTransform
-
scaleBoundingBox
public static net.imglib2.Interval scaleBoundingBox(net.imglib2.Interval boundingBox, double factor) Scale the bounding box (use with scaleTransform so it is the right image, but just smaller)- Parameters:
boundingBox- the bounding boxfactor- scaling factor- Returns:
- scaled bounding box
-
scaleBoundingBox
public static net.imglib2.Interval scaleBoundingBox(net.imglib2.Interval boundingBox, double factor, double[] offset) -
scaleBoundingBox
public static net.imglib2.Interval scaleBoundingBox(net.imglib2.Interval boundingBox, double[] factors)
-