public class AutomaticReorientation extends BoundingBoxGUI
Modifier and Type | Class and Description |
---|---|
static class |
AutomaticReorientation.Reorientation |
BoundingBoxGUI.ManageListeners
Modifier and Type | Field and Description |
---|---|
static int |
defaultDetections |
static double |
defaultPercent |
static int |
defaultReorientate |
static boolean |
defaultSaveReorientation |
String[] |
reorientationChoice |
static String |
reorientationDescription |
changedSpimDataObject, defaultImgType, defaultMax, defaultMin, defaultPixelType, downsampling, imgtype, imgTypes, pixelType, pixelTypes, spimData, staticDownsampling, viewIdsToProcess
max, min, title
Constructor and Description |
---|
AutomaticReorientation(SpimData2 spimData,
List<ViewId> viewIdsToProcess) |
Modifier and Type | Method and Description |
---|---|
boolean |
cleanUp()
Called before the XML is potentially saved
|
protected Pair<AffineTransform3D,double[]> |
determineOptimalBoundingBox(ArrayList<ChannelProcess> channelsToUse,
int detections) |
protected Pair<double[],double[]> |
determineSizeSimple(ArrayList<ChannelProcess> channelsToUse,
int detections) |
protected List<double[]> |
getAllDetectionsInGlobalCoordinates(ArrayList<ChannelProcess> channelsToUse,
int detections) |
String |
getDescription() |
static Transform3D |
getRotation(Vector3d v0,
Vector3d v1)
Computes a Transform3D that will rotate vector v0 into the direction of vector v1.
|
AutomaticReorientation |
newInstance(SpimData2 spimData,
List<ViewId> viewIdsToProcess) |
protected Pair<Integer,Integer> |
numReorientated() |
boolean |
queryParameters(Fusion fusion,
ImgExport imgExport) |
static double |
squareDistance(double p1x,
double p1y,
double p1z,
double p2x,
double p2y,
double p2z) |
protected Pair<Double,double[]> |
testAxis(Vector3d v,
List<double[]> points)
Test one major axis for the minimal bounding box volume required
|
computeMaxBoundingBoxDimensions, getDimensions, getDownSampling, getImgFactory, getImgType, getPixelType, getSimpleDialog, numPixels, queryParameters, setUpDefaultValues
compareTo, dimension, dimensions, getMax, getMin, getTitle, max, max, max, min, min, min, numDimensions, realMax, realMax, realMax, realMin, realMin, realMin, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPoint
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
allPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositive
public static String reorientationDescription
public String[] reorientationChoice
public static int defaultReorientate
public static boolean defaultSaveReorientation
public static int defaultDetections
public static double defaultPercent
public boolean cleanUp()
cleanUp
in class BoundingBoxGUI
public boolean queryParameters(Fusion fusion, ImgExport imgExport)
queryParameters
in class BoundingBoxGUI
protected Pair<AffineTransform3D,double[]> determineOptimalBoundingBox(ArrayList<ChannelProcess> channelsToUse, int detections)
channelsToUse
- detections
- protected Pair<Double,double[]> testAxis(Vector3d v, List<double[]> points)
v
- - normalized vectorpoints
- - all pointspublic static Transform3D getRotation(Vector3d v0, Vector3d v1)
v0
- v1
- public static final double squareDistance(double p1x, double p1y, double p1z, double p2x, double p2y, double p2z)
protected Pair<double[],double[]> determineSizeSimple(ArrayList<ChannelProcess> channelsToUse, int detections)
protected List<double[]> getAllDetectionsInGlobalCoordinates(ArrayList<ChannelProcess> channelsToUse, int detections)
public AutomaticReorientation newInstance(SpimData2 spimData, List<ViewId> viewIdsToProcess)
newInstance
in class BoundingBoxGUI
viewIdsToProcess
- - which view ids to fusepublic String getDescription()
getDescription
in class BoundingBoxGUI
Copyright © 2015–2021 Fiji. All rights reserved.