public class MiscTools extends Object
Constructor and Description |
---|
MiscTools() |
Modifier and Type | Method and Description |
---|---|
static void |
adaptCoefficients(double xScale,
double yScale,
int intervals,
double[][] cx,
double[][] cy)
Adapt B-spline coefficients to a scale factor
|
static void |
adaptCoefficients(String inputTransfPath,
double scaleFactor,
String outputTransfPath)
Adapt B-spline coefficients based on a scale factor.
|
static void |
applyRawTransformationToSource(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
BSplineModel source,
double[][] transformation_x,
double[][] transformation_y)
Apply a given raw transformation to the source image.
|
static ij.process.ImageProcessor |
applyTransformationMT(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
BSplineModel source,
int intervals,
double[][] cx,
double[][] cy)
Apply a given B-spline transformation to the source (gray-scale) image.
|
static void |
applyTransformationToSource(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
BSplineModel sourceR,
BSplineModel sourceG,
BSplineModel sourceB,
int intervals,
double[][] cx,
double[][] cy)
Deprecated.
|
static void |
applyTransformationToSource(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
BSplineModel source,
int intervals,
double[][] cx,
double[][] cy)
Deprecated.
|
static void |
applyTransformationToSourceMT(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
BSplineModel source,
int intervals,
double[][] cx,
double[][] cy)
Apply a given B-spline transformation to the source (gray-scale) image.
|
static void |
applyTransformationToSourceMT(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
int intervals,
double[][] cx,
double[][] cy)
Apply a given B-spline transformation to the source (gray-scale) image.
|
static ij.ImagePlus |
applyTransformToStack(String transformationFile,
ij.ImagePlus fixedImage,
ij.ImagePlus movingStack)
Apply transform saved on a file to all slices of moving image
|
static double[] |
approximateInverseCoords(double[] movingCoords,
ij.ImagePlus fixedImp,
double[][] transformation_x,
double[][] transformation_y)
Approximate the transformed coordinates of a point from the
moving image into the fixed image.
|
static void |
composeElasticTransformations(ij.ImagePlus targetImp,
int intervals,
double[][] cx1,
double[][] cy1,
double[][] cx2,
double[][] cy2,
double[][] outputTransformation_x,
double[][] outputTransformation_y)
Compose two elastic deformations into a raw deformation.
|
static void |
composeElasticTransformationsAtPixelLevel(ij.ImagePlus targetImp,
int intervals,
double[][] cx1,
double[][] cy1,
double[][] cx2,
double[][] cy2,
double[][] outputTransformation_x,
double[][] outputTransformation_y)
Compose two elastic deformations into a raw deformation at pixel level.
|
static void |
composeElasticTransforms(String elasticTransfPath1,
String elasticTransfPath2,
String outputRawTransfPath,
ij.ImagePlus targetImp)
Compose two elastic transform into a raw transform and save it to file
|
static void |
composeRawElasticTransformations(ij.ImagePlus targetImp,
int intervals,
double[][] transformation_x_1,
double[][] transformation_y_1,
double[][] cx2,
double[][] cy2,
double[][] outputTransformation_x,
double[][] outputTransformation_y)
Compose a raw deformation and an elastic deformation into a raw deformation.
|
static void |
composeRawElasticTransforms(String rawTransfPath,
String elasticTransfPath,
String outputPath,
ij.ImagePlus targetImp,
ij.ImagePlus sourceImp)
Compose a raw and an elastic transform and save result into file.
|
static void |
composeRawTransformations(int width,
int height,
double[][] transformation_x_1,
double[][] transformation_y_1,
double[][] transformation_x_2,
double[][] transformation_y_2,
double[][] outputTransformation_x,
double[][] outputTransformation_y)
Compose two raw transformations (Bilinear interpolation)
|
static void |
composeRawTransforms(String transfPath1,
String transfPath2,
String outputTransfPath,
ij.ImagePlus targetImp)
Compose raw transforms into another raw transform and save to file.
|
static void |
convertElasticTransformationToRaw(ij.ImagePlus targetImp,
int intervals,
double[][] cx,
double[][] cy,
double[][] transformation_x,
double[][] transformation_y)
Calculate the raw transformation mapping from B-spline
coefficients.
|
static void |
convertRawTransformationToBSpline(ij.ImagePlus targetImp,
int intervals,
double[][] transformation_x,
double[][] transformation_y,
double[][] cx,
double[][] cy)
Convert the raw transformation mapping to B-spline
coefficients.
|
static ij.process.ImageProcessor |
createDownsampled(ij.process.ImageProcessor source,
float scale,
float sourceSigma,
float targetSigma)
Create a downsampled ImageProcessor.
|
static void |
drawArrow(double[][] canvas,
int x1,
int y1,
int x2,
int y2,
double color,
int arrow_size)
Draw an arrow between two points.
|
static void |
drawLine(double[][] canvas,
int x1,
int y1,
int x2,
int y2,
double color)
Draw a line between two points.
|
static double |
elasticRawWarpingIndex(String elasticTransfPath,
String rawTransfPath,
ij.ImagePlus targetImp,
ij.ImagePlus sourceImp)
Calculate warping index between an elastic and a raw transform loaded
from file.
|
static void |
extractImage(ij.process.ImageProcessor ip,
double[] image)
Put the image from an ImageProcessor into a double array.
|
static void |
extractImage(ij.process.ImageProcessor ip,
double[][] image)
Put the image from an ImageProcessor into a double[][].
|
static String |
getUserSelectedFilePath(String dialogTitle,
boolean saveDialog)
Show a non-recordable dialog so the user selects a file.
|
static double |
imageSimilarity(ij.ImagePlus targetImp,
ij.ImagePlus sourceImp,
Mask targetMsk,
boolean verbose)
Calculate image similarity between two images (target and source)
|
static void |
invertRawTransformation(ij.ImagePlus targetImp,
double[][] transformation_x,
double[][] transformation_y,
double[][] inv_x,
double[][] inv_y) |
static void |
invertRawTransformation(String inputTransfPath,
String outputTransfPath,
ij.ImagePlus targetImp)
Approximate the inverse of a raw transform and save it to file.
|
static void |
loadAffineMatrix(String filename,
double[][] affineMatrix)
Load an affine matrix from a file.
|
static void |
loadPointRoiAsLandmarks(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
Stack<Point> sourceStack,
Stack<Point> targetStack)
Load point rois in the source and target images as landmarks.
|
static void |
loadPoints(String filename,
Stack<Point> sourceStack,
Stack<Point> targetStack)
Load landmarks from file.
|
static void |
loadRawTransformation(String filename,
double[][] transformation_x,
double[][] transformation_y)
Load a raw transformation from a file.
|
static void |
loadRawTransformation(String filename,
double[] transformation_x,
double[] transformation_y)
Load a raw transformation from a file.
|
static void |
loadTransformation(String filename,
double[][] cx,
double[][] cy)
Load a transformation from a file.
|
static int |
numberOfIntervalsOfTransformation(String filename)
Read the number of intervals of a transformation from a file.
|
static double |
oppositeWarpingIndex(String directTransfPath,
String inverseTransfPath,
ij.ImagePlus targetImp,
ij.ImagePlus sourceImp)
Calculate the warping index between two opposite elastic deformations.
|
static void |
Point(double[][] canvas,
int y,
int x,
double color)
Plot a point in a canvas.
|
static void |
printMatrix(String title,
double[][] array)
Print a matrix in the command line.
|
static double |
rawWarpingIndex(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
double[][] transformation_x_1,
double[][] transformation_y_1,
double[][] transformation_x_2,
double[][] transformation_y_2)
Warping index for comparing two raw deformations (both
transformations having same direction).
|
static double |
rawWarpingIndex(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
int intervals,
double[][] cx_direct,
double[][] cy_direct,
double[][] transformation_x,
double[][] transformation_y)
Warping index for comparing elastic deformations with any kind
of deformation (both transformations having same direction).
|
static double |
rawWarpingIndex(String rawTransfPath1,
String rawTransfPath2,
ij.ImagePlus targetImp,
ij.ImagePlus sourceImp)
Calculate warping index between two raw transforms loaded from file.
|
static void |
saveElasticAsRaw(String elasticTransfPath,
String rawTransfPath,
ij.ImagePlus targetImp)
Save elastic transform as raw transform.
|
static void |
saveElasticTransformation(int intervals,
double[][] cx,
double[][] cy,
String filename)
Save the elastic transformation.
|
static void |
saveLandmarks(String outputPath,
Vector<Point> sourceList,
Vector<Point> targetList)
Save source and target landmarks to file
|
static void |
saveRawAsElastic(String rawTransfPath,
String elasticTransfPath,
int intervals,
ij.ImagePlus targetImp)
Save raw transform as elastic.
|
static void |
saveRawTransformation(String filename,
int width,
int height,
double[][] transformation_x,
double[][] transformation_y)
Save a raw transformation
|
static ij.process.ImageProcessor |
scale(ij.process.ImageProcessor source,
float scale)
Scale an image with good quality in both up and down direction
|
static void |
showImage(String title,
double[][] array)
Show an image in a new bUnwarpJ window.
|
static void |
showImage(String title,
double[] array,
int Ydim,
int Xdim)
Show an image in a new bUnwarpJ window.
|
static void |
showPoints(Vector<Point> sourceList,
Vector<Point> targetList)
Display landmark points in a separate table
|
static void |
smoothForScale(ij.process.ImageProcessor source,
float scale,
float sourceSigma,
float targetSigma)
Smooth with a Gaussian kernel that represents downsampling at a given
scale factor and sourceSigma.
|
static double |
warpingIndex(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
int intervals,
double[][] cx_direct,
double[][] cy_direct,
double[][] cx_inverse,
double[][] cy_inverse)
Calculate the warping index between two opposite elastic deformations.
|
public static void applyTransformationToSource(ij.ImagePlus sourceImp, ij.ImagePlus targetImp, BSplineModel source, int intervals, double[][] cx, double[][] cy)
sourceImp
- source image representationtargetImp
- target image representationsource
- source image modelintervals
- intervals in the deformationcx
- x- B-spline coefficientscy
- y- B-spline coefficientspublic static void applyTransformationToSource(ij.ImagePlus sourceImp, ij.ImagePlus targetImp, BSplineModel sourceR, BSplineModel sourceG, BSplineModel sourceB, int intervals, double[][] cx, double[][] cy)
sourceImp
- source image representationtargetImp
- target image representationsourceR
- image model of the source red channelsourceG
- image model of the source green channelsourceB
- image model of the source blue channelintervals
- intervals in the deformationcx
- x- B-spline coefficientscy
- y- B-spline coefficientspublic static void applyRawTransformationToSource(ij.ImagePlus sourceImp, ij.ImagePlus targetImp, BSplineModel source, double[][] transformation_x, double[][] transformation_y)
sourceImp
- source image representationtargetImp
- target image representationsource
- source imagetransformation_x
- x- mapping coordinatestransformation_y
- y- mapping coordinatespublic static double[] approximateInverseCoords(double[] movingCoords, ij.ImagePlus fixedImp, double[][] transformation_x, double[][] transformation_y)
movingCoords
- point coordinates in moving spacefixedImp
- fixed (source) imagetransformation_x
- raw transform x-coordinatestransformation_y
- raw transform y-coordinatespublic static double oppositeWarpingIndex(String directTransfPath, String inverseTransfPath, ij.ImagePlus targetImp, ij.ImagePlus sourceImp)
directTransfPath
- complete path to direct elastic transforminverseTransfPath
- complete path to inverse elastic transformtargetImp
- target imagesourceImp
- source imagepublic static double warpingIndex(ij.ImagePlus sourceImp, ij.ImagePlus targetImp, int intervals, double[][] cx_direct, double[][] cy_direct, double[][] cx_inverse, double[][] cy_inverse)
sourceImp
- source image representationtargetImp
- target image representationintervals
- intervals in the deformationcx_direct
- direct transformation x- B-spline coefficientscy_direct
- direct transformation y- B-spline coefficientscx_inverse
- inverse transformation x- B-spline coefficientscy_inverse
- inverse transformation y- B-spline coefficientspublic static void saveElasticAsRaw(String elasticTransfPath, String rawTransfPath, ij.ImagePlus targetImp)
elasticTransfPath
- complete path to elastic transformrawTransfPath
- complete path to raw transformtargetImp
- target imagepublic static void saveRawAsElastic(String rawTransfPath, String elasticTransfPath, int intervals, ij.ImagePlus targetImp)
rawTransfPath
- complete path to input raw transformelasticTransfPath
- complete path to output elastic transformintervals
- number of intervals between B-spline coefficientstargetImp
- target imagepublic static void convertElasticTransformationToRaw(ij.ImagePlus targetImp, int intervals, double[][] cx, double[][] cy, double[][] transformation_x, double[][] transformation_y)
targetImp
- target image representationintervals
- intervals in the deformationcx
- transformation x- B-spline coefficientscy
- transformation y- B-spline coefficientstransformation_x
- raw transformation in x- axis (output)transformation_y
- raw transformation in y- axis (output)public static void convertRawTransformationToBSpline(ij.ImagePlus targetImp, int intervals, double[][] transformation_x, double[][] transformation_y, double[][] cx, double[][] cy)
targetImp
- target image representationintervals
- intervals in the deformationtransformation_x
- raw transformation in x- axistransformation_y
- raw transformation in y- axiscx
- transformation in x- by B-spline coefficients (output)cy
- transformation in y- by B-spline coefficients (output)public static void invertRawTransformation(ij.ImagePlus targetImp, double[][] transformation_x, double[][] transformation_y, double[][] inv_x, double[][] inv_y)
public static void invertRawTransformation(String inputTransfPath, String outputTransfPath, ij.ImagePlus targetImp)
inputTransfPath
- complete path to input raw transform fileoutputTransfPath
- complete path to output transform filetargetImp
- target imagepublic static double rawWarpingIndex(ij.ImagePlus sourceImp, ij.ImagePlus targetImp, int intervals, double[][] cx_direct, double[][] cy_direct, double[][] transformation_x, double[][] transformation_y)
sourceImp
- source image representationtargetImp
- target image representationintervals
- intervals in the deformationcx_direct
- direct transformation x- B-spline coefficientscy_direct
- direct transformation y- B-spline coefficientstransformation_x
- raw direct transformation in x- axistransformation_y
- raw direct transformation in y- axispublic static double rawWarpingIndex(ij.ImagePlus sourceImp, ij.ImagePlus targetImp, double[][] transformation_x_1, double[][] transformation_y_1, double[][] transformation_x_2, double[][] transformation_y_2)
sourceImp
- source image representationtargetImp
- target image representationtransformation_x_1
- raw first transformation in x- axistransformation_y_1
- raw first transformation in y- axistransformation_x_2
- raw second transformation in x- axistransformation_y_2
- raw second transformation in y- axispublic static void drawArrow(double[][] canvas, int x1, int y1, int x2, int y2, double color, int arrow_size)
canvas
- canvas where we are paintingx1
- x- coordinate for the arrow originy1
- y- coordinate for the arrow originx2
- x- coordinate for the arrow heady2
- y- coordinate for the arrow headcolor
- arrow colorarrow_size
- arrow sizepublic static void drawLine(double[][] canvas, int x1, int y1, int x2, int y2, double color)
canvas
- canvas where we are paintingx1
- x- coordinate for first pointy1
- y- coordinate for first pointx2
- x- coordinate for second pointy2
- y- coordinate for second pointcolor
- line colorpublic static void extractImage(ij.process.ImageProcessor ip, double[] image)
ip
- input, origin of the imageimage
- output, the image in a double arraypublic static void extractImage(ij.process.ImageProcessor ip, double[][] image)
ip
- input, origin of the imageimage
- output, the image in a double[][]public static void loadPoints(String filename, Stack<Point> sourceStack, Stack<Point> targetStack)
filename
- landmarks file namesourceStack
- stack of source related points (output)targetStack
- stack of target related points (output)public static void loadPointRoiAsLandmarks(ij.ImagePlus sourceImp, ij.ImagePlus targetImp, Stack<Point> sourceStack, Stack<Point> targetStack)
sourceImp
- source image plustargetImp
- target image plussourceStack
- stack of source related points (output)targetStack
- stack of target related points (output)public static void loadTransformation(String filename, double[][] cx, double[][] cy)
filename
- transformation file namecx
- x- B-spline coefficientscy
- y- B-spline coefficientspublic static void loadRawTransformation(String filename, double[][] transformation_x, double[][] transformation_y)
filename
- transformation file nametransformation_x
- output x- transformation coordinatestransformation_y
- output y- transformation coordinatespublic static void loadRawTransformation(String filename, double[] transformation_x, double[] transformation_y)
filename
- transformation file nametransformation_x
- output x- transformation coordinatestransformation_y
- output y- transformation coordinatespublic static void loadAffineMatrix(String filename, double[][] affineMatrix)
filename
- matrix file nameaffineMatrix
- output affine matrixpublic static void composeElasticTransformations(ij.ImagePlus targetImp, int intervals, double[][] cx1, double[][] cy1, double[][] cx2, double[][] cy2, double[][] outputTransformation_x, double[][] outputTransformation_y)
targetImp
- target image representationintervals
- intervals in the deformationcx1
- first transformation x- B-spline coefficientscy1
- first transformation y- B-spline coefficientscx2
- second transformation x- B-spline coefficientscy2
- second transformation y- B-spline coefficientsoutputTransformation_x
- output transformation coordinates in x-axisoutputTransformation_y
- output transformation coordinates in y-axispublic static void composeRawElasticTransformations(ij.ImagePlus targetImp, int intervals, double[][] transformation_x_1, double[][] transformation_y_1, double[][] cx2, double[][] cy2, double[][] outputTransformation_x, double[][] outputTransformation_y)
targetImp
- target image representationintervals
- intervals in the deformationtransformation_x_1
- first transformation coordinates in x-axistransformation_y_1
- first transformation coordinates in y-axiscx2
- second transformation x- B-spline coefficientscy2
- second transformation y- B-spline coefficientsoutputTransformation_x
- output transformation coordinates in x-axisoutputTransformation_y
- output transformation coordinates in y-axispublic static void composeElasticTransformationsAtPixelLevel(ij.ImagePlus targetImp, int intervals, double[][] cx1, double[][] cy1, double[][] cx2, double[][] cy2, double[][] outputTransformation_x, double[][] outputTransformation_y)
targetImp
- target image representationintervals
- intervals in the deformationcx1
- first transformation x- B-spline coefficientscy1
- first transformation y- B-spline coefficientscx2
- second transformation x- B-spline coefficientscy2
- second transformation y- B-spline coefficientsoutputTransformation_x
- output transformation coordinates in y-axisoutputTransformation_y
- output transformation coordinates in y-axispublic static void composeRawTransforms(String transfPath1, String transfPath2, String outputTransfPath, ij.ImagePlus targetImp)
transfPath1
- complete path to first raw transformtransfPath2
- complete path to second raw transformoutputTransfPath
- complete path to output filetargetImp
- target imagepublic static void composeElasticTransforms(String elasticTransfPath1, String elasticTransfPath2, String outputRawTransfPath, ij.ImagePlus targetImp)
elasticTransfPath1
- complete path to first elastic transformelasticTransfPath2
- complete path to second elastic transformoutputRawTransfPath
- complete path to output raw transform filetargetImp
- target imagepublic static void composeRawTransformations(int width, int height, double[][] transformation_x_1, double[][] transformation_y_1, double[][] transformation_x_2, double[][] transformation_y_2, double[][] outputTransformation_x, double[][] outputTransformation_y)
width
- image widthheight
- image heighttransformation_x_1
- first transformation coordinates in x-axistransformation_y_1
- first transformation coordinates in y-axistransformation_x_2
- second transformation coordinates in x-axistransformation_y_2
- second transformation coordinates in y-axisoutputTransformation_x
- output transformation coordinates in y-axisoutputTransformation_y
- output transformation coordinates in y-axispublic static void saveElasticTransformation(int intervals, double[][] cx, double[][] cy, String filename)
intervals
- number of intervals in the deformationcx
- x- deformation coefficientscy
- y- deformation coefficientsfilename
- transformation file namepublic static void saveRawTransformation(String filename, int width, int height, double[][] transformation_x, double[][] transformation_y)
filename
- raw transformation file namewidth
- image widthheight
- image heighttransformation_x
- transformation coordinates in x-axistransformation_y
- transformation coordinates in y-axispublic static int numberOfIntervalsOfTransformation(String filename)
filename
- transformation file namepublic static void Point(double[][] canvas, int y, int x, double color)
canvas
- canvas where we are paintingx
- x- coordinate for the pointy
- y- coordinate for the pointcolor
- point colorpublic static void printMatrix(String title, double[][] array)
title
- matrix titlearray
- matrix to be printedpublic static void showImage(String title, double[] array, int Ydim, int Xdim)
title
- image titlearray
- image in a double arrayYdim
- image heightXdim
- image widthpublic static void showImage(String title, double[][] array)
title
- image titlearray
- image in a double arraypublic static void adaptCoefficients(String inputTransfPath, double scaleFactor, String outputTransfPath)
inputTransfPath
- complete path to input transform filescaleFactor
- isotropic scale factoroutputTransfPath
- complete path to output transform filepublic static void adaptCoefficients(double xScale, double yScale, int intervals, double[][] cx, double[][] cy)
xScale
- yScale
- intervals
- cx
- cy
- public static void applyTransformationToSourceMT(ij.ImagePlus sourceImp, ij.ImagePlus targetImp, int intervals, double[][] cx, double[][] cy)
sourceImp
- source image representationtargetImp
- target image representationintervals
- intervals in the deformationcx
- x- B-spline coefficientscy
- y- B-spline coefficientspublic static void applyTransformationToSourceMT(ij.ImagePlus sourceImp, ij.ImagePlus targetImp, BSplineModel source, int intervals, double[][] cx, double[][] cy)
sourceImp
- source image representationtargetImp
- target image representationsource
- source image modelintervals
- intervals in the deformationcx
- x- B-spline coefficientscy
- y- B-spline coefficientspublic static ij.process.ImageProcessor applyTransformationMT(ij.ImagePlus sourceImp, ij.ImagePlus targetImp, BSplineModel source, int intervals, double[][] cx, double[][] cy)
sourceImp
- source image representationtargetImp
- target image representationsource
- source image modelintervals
- intervals in the deformationcx
- x- B-spline coefficientscy
- y- B-spline coefficientspublic static final void smoothForScale(ij.process.ImageProcessor source, float scale, float sourceSigma, float targetSigma)
public static final ij.process.ImageProcessor createDownsampled(ij.process.ImageProcessor source, float scale, float sourceSigma, float targetSigma)
source
- the source imagescale
- scaling factorsourceSigma
- the Gaussian at which the source was sampled (guess 0.5 if you do not know)targetSigma
- the Gaussian at which the target will be sampledFloatProcessor
public static final ij.process.ImageProcessor scale(ij.process.ImageProcessor source, float scale)
public static ij.ImagePlus applyTransformToStack(String transformationFile, ij.ImagePlus fixedImage, ij.ImagePlus movingStack)
transformationFile
- elastic transform filefixedImage
- fixed imagemovingStack
- stack containing all the moving imagespublic static double imageSimilarity(ij.ImagePlus targetImp, ij.ImagePlus sourceImp, Mask targetMsk, boolean verbose)
targetImp
- target imagesourceImp
- source imagetargetMsk
- target maskverbose
- flag to display result in log windowpublic static void saveLandmarks(String outputPath, Vector<Point> sourceList, Vector<Point> targetList)
outputPath
- complete output landmark pathsourceList
- vector of source landmark pointstargetList
- vector of target landmark pointspublic static void showPoints(Vector<Point> sourceList, Vector<Point> targetList)
sourceList
- vector of source landmark pointstargetList
- vector of target landmark pointspublic static String getUserSelectedFilePath(String dialogTitle, boolean saveDialog)
dialogTitle
- displayed dialog titlesaveDialog
- flag to create save (if true) or load dialogpublic static double elasticRawWarpingIndex(String elasticTransfPath, String rawTransfPath, ij.ImagePlus targetImp, ij.ImagePlus sourceImp)
elasticTransfPath
- complete path of elastic transform filerawTransfPath
- complete path of raw transform filetargetImp
- target imagesourceImp
- source imagepublic static double rawWarpingIndex(String rawTransfPath1, String rawTransfPath2, ij.ImagePlus targetImp, ij.ImagePlus sourceImp)
rawTransfPath1
- complete path of first raw transform filerawTransfPath2
- complete path of second raw transform filetargetImp
- target imagesourceImp
- source imagepublic static void composeRawElasticTransforms(String rawTransfPath, String elasticTransfPath, String outputPath, ij.ImagePlus targetImp, ij.ImagePlus sourceImp)
rawTransfPath
- complete path to raw transformelasticTransfPath
- complete path to elastic transformoutputPath
- complete output file pathtargetImp
- target imagesourceImp
- source imageCopyright © 2015–2021 Fiji. All rights reserved.