public class ExtractPSF extends Object
Constructor and Description |
---|
ExtractPSF(SPIMConfiguration config) |
ExtractPSF(ViewStructure viewStructure) |
Modifier and Type | Method and Description |
---|---|
static <T extends Type<T>> |
commonSize(List<Image<T>> images)
Returns the bounding box so that all images can fit in there
or null if input is null or input.size is 0
|
void |
computeAveragePSF(int[] maxSize)
compute the average psf in original calibration and after applying the transformations
|
void |
extract() |
void |
extract(int viewID,
int[] maxSize) |
protected static Image<FloatType> |
extractPSF(ViewDataBeads view,
int[] size)
Extracts the PSF by averaging the local neighborhood RANSAC correspondences
|
Image<FloatType> |
getAverageOriginalPSF() |
Image<FloatType> |
getAveragePSF() |
Image<FloatType> |
getMaxProjectionAveragePSF()
Get projection along the smallest dimension (which is usually the rotation axis)
|
ArrayList<Image<FloatType>> |
getPSFs() |
ArrayList<Image<FloatType>> |
getPSFsInInputCalibration() |
static ExtractPSF |
loadAndTransformPSF(ArrayList<String> fileName,
boolean transformPSFs,
ViewStructure viewStructure) |
static Image<FloatType> |
makeSameSize(Image<FloatType> img,
int[] sizeIn)
Make image the same size as defined, center it
|
void |
setPSFSize(int size,
boolean isotropic,
int[] size3d)
Defines the size of the PSF that is extracted
|
protected static Image<FloatType> |
transformPSF(Image<FloatType> psf,
AbstractAffineModel3D<?> model)
Transforms the extracted PSF using the affine transformation of the corresponding view
|
public ExtractPSF(SPIMConfiguration config)
public ExtractPSF(ViewStructure viewStructure)
public void setPSFSize(int size, boolean isotropic, int[] size3d)
size
- - number of pixels in xyisotropic
- - if isotropic, than same size applies to z (in px), otherwise it is divided by half the z-stretchingpublic ArrayList<Image<FloatType>> getPSFs()
public ArrayList<Image<FloatType>> getPSFsInInputCalibration()
public Image<FloatType> getAveragePSF()
public Image<FloatType> getAverageOriginalPSF()
public Image<FloatType> getMaxProjectionAveragePSF()
public void computeAveragePSF(int[] maxSize)
maxSize
- public void extract(int viewID, int[] maxSize)
public void extract()
protected static Image<FloatType> transformPSF(Image<FloatType> psf, AbstractAffineModel3D<?> model)
psf
- - the extracted psf (NOT z-scaling corrected)model
- - the transformation modelprotected static Image<FloatType> extractPSF(ViewDataBeads view, int[] size)
view
- - the SPIM viewsize
- - the size in which the psf is extracted (in pixel units, z-scaling is ignored)public static Image<FloatType> makeSameSize(Image<FloatType> img, int[] sizeIn)
img
- public static <T extends Type<T>> int[] commonSize(List<Image<T>> images)
images
- public static ExtractPSF loadAndTransformPSF(ArrayList<String> fileName, boolean transformPSFs, ViewStructure viewStructure)
Copyright © 2015–2021 Fiji. All rights reserved.