public class ViewDataBeads extends Object implements Comparable<ViewDataBeads>
Modifier and Type | Field and Description |
---|---|
protected int |
angle
the acquisition angle
|
protected BeadStructure |
beads
The Object for storing the potential beads
|
protected int |
channel
the channel
|
protected int |
channelIndex
the channel
|
protected int |
currentDownSamplingFactor |
protected Image<FloatType> |
downSampledImage
The currently downsampled image cached
|
protected int |
id
the unique(!) identification of the view
|
protected int |
illumination
the index of the illumination direction
|
protected int[] |
imageSize
The size of the input stack
|
protected int[] |
imageSizeOffset
The offset of the input stack
|
protected float |
initialSigma |
protected int |
integralRadius1 |
protected int |
integralRadius2 |
protected float |
integralThreshold |
protected float |
minInitialPeakValue |
static float[] |
minmaxset
Can be used to manually set min (minmaxset[0]) and max (minmaxset[1]) value for all views
that are opened.
|
protected float |
minPeakValue |
protected boolean |
mirrorHorizontally |
protected boolean |
mirrorVertically |
protected NucleusStructure |
nuclei
The Object for storing the potential nuclei
|
protected int |
timePoint
the timepoint of this view
|
protected boolean |
useForFusion |
protected boolean |
useForRegistration |
protected ViewErrorStatistics |
viewError
The object for storing View-related error statistics
|
protected ViewStructure |
viewStructure
The structure of the views that will be aligned
|
protected double |
zStretching
The z-stretching of the input stack
|
Constructor and Description |
---|
ViewDataBeads(int id,
M model,
String fileName,
double zStretching) |
Modifier and Type | Method and Description |
---|---|
void |
closeImage()
Closes the input image stack of this view
|
int |
compareTo(ViewDataBeads o) |
int |
getAcqusitionAngle() |
BeadStructure |
getBeadStructure() |
int |
getChannel() |
int |
getChannelIndex() |
Image<FloatType> |
getDownSampledImage(int downSamplingFactor)
Gets a downsampled and normalized [0...1] version of the input image
|
Image<FloatType> |
getDownSampledImage(int downSamplingFactor,
boolean normalize)
Gets a downsampled version of the input image
|
String |
getFileName() |
int |
getID() |
int |
getIllumination() |
Image<FloatType> |
getImage()
The link to the input image of this view, normalized to [0...1]
|
Image<FloatType> |
getImage(boolean normalize)
The link to the input image of this view
|
Image<FloatType> |
getImage(ContainerFactory imageFactory)
The link to the input image of this view normalized to [0...1]
|
Image<FloatType> |
getImage(ContainerFactory imageFactory,
boolean normalize)
The link to the input image of this view
|
int[] |
getImageSize() |
int[] |
getImageSizeOffset() |
float |
getInitialSigma() |
int |
getIntegralRadius1() |
int |
getIntegralRadius2() |
float |
getIntegralThreshold() |
float |
getMaxValue() |
float |
getMaxValueUnnormed() |
float |
getMinInitialPeakValue() |
float |
getMinPeakValue() |
float |
getMinValue() |
boolean |
getMirrorHorizontally() |
boolean |
getMirrorVertically() |
String |
getName() |
NucleusStructure |
getNucleiStructure() |
int |
getNumDimensions()
Gets the number of dimensions from view 1
|
int |
getNumViews() |
TileSPIM |
getTile() |
int |
getTimePoint() |
Transform3D |
getTransform3D()
Returns the affine transformation of this
ViewDataBeads as Java3D Transform3D |
AbstractAffineModel3D<?> |
getUninitializedModel() |
boolean |
getUseForFusion() |
boolean |
getUseForRegistration() |
ViewErrorStatistics |
getViewErrorStatistics() |
ViewStructure |
getViewStructure() |
double |
getZStretching() |
void |
initErrorStatistics() |
boolean |
isConnected()
if the view is connected to any other view or excluded from the registration because no true correspondences were found
|
boolean |
loadDimensions()
Loads the dimensions from the *.dim files in the registration file directory
|
boolean |
loadRegistration()
Loads the registration matrix and the errors from the *.registration files in the registration file directory
|
boolean |
loadRegistrationTimePoint(int referenceTimePoint)
Loads the registration matrix and the errors relative to a reference timepoint from the *.registration files in the registration file directory
|
boolean |
loadSegmentation()
Loads the bead detections and its correspondences candidates as well as true correspondences from the *.beads.txt files in the registration file directory
|
void |
normalizeImage() |
static float[] |
normalizeImage(Image<FloatType> image)
Normalizes the image to the range [0...1]
|
static float[] |
normalizeImage(Image<FloatType> image,
float[] minmax)
Normalizes the image to the range [0...1]
|
void |
setAcqusitionAngle(int angle) |
void |
setBeadStructure(BeadStructure beads) |
void |
setChannel(int channel) |
void |
setChannelIndex(int channelIndex) |
void |
setFileName(String fileName) |
void |
setID(int id) |
void |
setIllumination(int illumination) |
void |
setImageSize(int[] size) |
void |
setImageSizeOffset(int[] imageSizeOffset) |
void |
setInitialSigma(float s) |
void |
setIntegralRadius1(int r1) |
void |
setIntegralRadius2(int r2) |
void |
setIntegralThreshold(float threshold) |
void |
setMinInitialPeakValue(float m) |
void |
setMinPeakValue(float m) |
void |
setMirrorHorizontally(boolean state) |
void |
setMirrorVertically(boolean state) |
void |
setName(String shortName) |
void |
setNucleiStructure(NucleusStructure nuclei) |
void |
setTimePoint(int timePoint) |
void |
setUseForFusion(boolean useForFusion) |
void |
setUseForRegistration(boolean useForRegistration) |
protected void |
setViewStructure(ViewStructure viewStructure) |
void |
setZStretching(double zStretching) |
String |
toString() |
void |
unnormalizeImage() |
boolean |
writeRegistration()
Writes the registration matrix and the errors into the *.registration files in the registration file directory
|
boolean |
writeRegistrationTimeLapse(int referenceTimePoint)
Writes the registration matrix and the errors into the *.registration files in the registration file directory
|
boolean |
writeSegmentation()
Writes the segmentated beads, correspondence candidates and ransac correspondences into the *.beads.txt files in the registration file directory
|
public static float[] minmaxset
protected ViewStructure viewStructure
protected BeadStructure beads
protected NucleusStructure nuclei
protected ViewErrorStatistics viewError
protected int id
protected int channel
protected int channelIndex
protected boolean useForRegistration
protected boolean useForFusion
protected float initialSigma
protected float minPeakValue
protected float minInitialPeakValue
protected int integralRadius1
protected int integralRadius2
protected float integralThreshold
protected int timePoint
protected int angle
protected int illumination
protected double zStretching
protected int[] imageSize
protected int[] imageSizeOffset
protected int currentDownSamplingFactor
protected boolean mirrorVertically
protected boolean mirrorHorizontally
public ViewDataBeads(int id, M model, String fileName, double zStretching)
M
- - an implementation of the AbstractAffineModel3D
id
- - an unique idmodel
- - the model instance, unintitializedfileName
- - the filename (or directory with 2d planes) of the viewzStretching
- - the z/xy stretchingpublic AbstractAffineModel3D<?> getUninitializedModel()
public boolean isConnected()
protected void setViewStructure(ViewStructure viewStructure)
public ViewStructure getViewStructure()
public int getNumViews()
public BeadStructure getBeadStructure()
public void setBeadStructure(BeadStructure beads)
public NucleusStructure getNucleiStructure()
public void setNucleiStructure(NucleusStructure nuclei)
public void initErrorStatistics()
public ViewErrorStatistics getViewErrorStatistics()
public int getID()
public void setID(int id)
public int getChannel()
public void setChannel(int channel)
public int getChannelIndex()
public void setChannelIndex(int channelIndex)
public int getTimePoint()
public void setTimePoint(int timePoint)
public boolean getUseForRegistration()
public void setUseForRegistration(boolean useForRegistration)
public boolean getUseForFusion()
public void setUseForFusion(boolean useForFusion)
public void setIntegralRadius1(int r1)
public void setIntegralRadius2(int r2)
public void setIntegralThreshold(float threshold)
public void setInitialSigma(float s)
public void setMinPeakValue(float m)
public void setMinInitialPeakValue(float m)
public float getInitialSigma()
public float getMinPeakValue()
public float getMinInitialPeakValue()
public int getIntegralRadius1()
public int getIntegralRadius2()
public float getIntegralThreshold()
public int getAcqusitionAngle()
public void setAcqusitionAngle(int angle)
public int getIllumination()
public void setIllumination(int illumination)
public String getFileName()
public void setFileName(String fileName)
public String getName()
public void setName(String shortName)
public TileSPIM getTile()
public Transform3D getTransform3D()
ViewDataBeads
as Java3D Transform3D
public double getZStretching()
public void setZStretching(double zStretching)
public int[] getImageSize()
public void setImageSize(int[] size)
public int[] getImageSizeOffset()
public void setImageSizeOffset(int[] imageSizeOffset)
public float getMinValue()
public float getMaxValue()
public int getNumDimensions()
public float getMaxValueUnnormed()
public Image<FloatType> getImage()
public Image<FloatType> getImage(boolean normalize)
public Image<FloatType> getDownSampledImage(int downSamplingFactor)
downSamplingFactor
- - the factorpublic Image<FloatType> getDownSampledImage(int downSamplingFactor, boolean normalize)
downSamplingFactor
- - the factornormalize
- - if normalized to [0...1] or notpublic void setMirrorHorizontally(boolean state)
public void setMirrorVertically(boolean state)
public boolean getMirrorHorizontally()
public boolean getMirrorVertically()
public Image<FloatType> getImage(ContainerFactory imageFactory)
public Image<FloatType> getImage(ContainerFactory imageFactory, boolean normalize)
public void unnormalizeImage()
public void normalizeImage()
public static float[] normalizeImage(Image<FloatType> image)
image
- - the image to normalizepublic static float[] normalizeImage(Image<FloatType> image, float[] minmax)
image
- - the image to normalizeminmax
- - null or a predefined min/max range (array[ 0 ] == min and array[ 1 ] == max)public void closeImage()
public boolean loadRegistration()
public boolean loadRegistrationTimePoint(int referenceTimePoint)
public boolean writeRegistration()
public boolean writeRegistrationTimeLapse(int referenceTimePoint)
referenceTimePoint
- - the reference time pointpublic boolean loadSegmentation()
public boolean writeSegmentation()
public boolean loadDimensions()
public int compareTo(ViewDataBeads o)
compareTo
in interface Comparable<ViewDataBeads>
Copyright © 2015–2021 Fiji. All rights reserved.