T
- public class DataContainer<T extends RealType<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DataContainer.MaskType |
Modifier and Type | Field and Description |
---|---|
String |
jobName |
protected long[] |
maskBBOffset |
protected long[] |
maskBBSize |
protected DataContainer.MaskType |
maskType |
Constructor and Description |
---|
DataContainer(RandomAccessibleInterval<T> src1,
RandomAccessibleInterval<T> src2,
int ch1,
int ch2,
String name1,
String name2)
Creates a new
DataContainer for a specific image channel
combination. |
DataContainer(RandomAccessibleInterval<T> src1,
RandomAccessibleInterval<T> src2,
int ch1,
int ch2,
String name1,
String name2,
long[] offset,
long[] size)
Creates a new
DataContainer for a specific set of image and
channel combination. |
DataContainer(RandomAccessibleInterval<T> src1,
RandomAccessibleInterval<T> src2,
int ch1,
int ch2,
String name1,
String name2,
RandomAccessibleInterval<T> mask,
long[] offset,
long[] size)
Creates a new
DataContainer for a specific set of image and
channel combination. |
public String jobName
protected DataContainer.MaskType maskType
protected long[] maskBBSize
protected long[] maskBBOffset
public DataContainer(RandomAccessibleInterval<T> src1, RandomAccessibleInterval<T> src2, int ch1, int ch2, String name1, String name2)
DataContainer
for a specific image channel
combination. We create default thresholds here that are the max and min of
the data type of the source image channels.src1
- The channel one image sourcesrc2
- The channel two image sourcech1
- The channel one image channelch2
- The channel two image channelpublic DataContainer(RandomAccessibleInterval<T> src1, RandomAccessibleInterval<T> src2, int ch1, int ch2, String name1, String name2, RandomAccessibleInterval<T> mask, long[] offset, long[] size) throws MissingPreconditionException
DataContainer
for a specific set of image and
channel combination. It will give access to the image according to
the mask passed. It is expected that the mask is of the same size
as an image slice. Default thresholds, min, max and mean will be set
according to the mask as well.src1
- The channel one image sourcesrc2
- The channel two image sourcech1
- The channel one image channelch2
- The channel two image channelmask
- The mask to useoffset
- The offset of the ROI in each dimensionsize
- The size of the ROI in each dimensionMissingPreconditionException
public DataContainer(RandomAccessibleInterval<T> src1, RandomAccessibleInterval<T> src2, int ch1, int ch2, String name1, String name2, long[] offset, long[] size) throws MissingPreconditionException
DataContainer
for a specific set of image and
channel combination. It will give access to the image according to
the region of interest (ROI) passed. Default thresholds, min, max and
mean will be set according to the ROI as well.src1
- The channel one image sourcesrc2
- The channel two image sourcech1
- The channel one image channelch2
- The channel two image channeloffset
- The offset of the ROI in each dimensionsize
- The size of the ROI in each dimensionMissingPreconditionException
protected void calculateStatistics()
protected void adjustRoiOffset(long[] oldOffset, long[] newOffset, long[] dimensions) throws MissingPreconditionException
oldOffset
- The offset with the original dimensionalitynewOffset
- The output array with the new dimensionalitydimensions
- An array of the dimensionsMissingPreconditionException
protected void adjustRoiSize(long[] oldSize, long[] newSize, long[] dimensions, long[] offset) throws MissingPreconditionException
oldSize
- Size array of old dimensionalitynewSize
- Output size array of new dimensionalitydimensions
- Dimensions representing the new dimensionalityoffset
- Offset of the new dimensionalityMissingPreconditionException
public RandomAccessibleInterval<T> getSourceImage1()
public RandomAccessibleInterval<T> getSourceImage2()
public String getSourceImage1Name()
public String getSourceImage2Name()
public String getSourceCh1Name()
public String getSourceCh2Name()
public String getJobName()
public RandomAccessibleInterval<BitType> getMask()
public long[] getMaskBBOffset()
public long[] getMaskBBSize()
public DataContainer.MaskType getMaskType()
public int getMaskID()
public int getCh1()
public int getCh2()
public double getMeanCh1()
public double getMeanCh2()
public double getMinCh1()
public double getMaxCh1()
public double getMinCh2()
public double getMaxCh2()
public double getIntegralCh1()
public double getIntegralCh2()
public InputCheck<T> getInputCheck()
public Algorithm<T> setInputCheck(InputCheck<T> inputCheck)
public AutoThresholdRegression<T> getAutoThreshold()
public Algorithm<T> setAutoThreshold(AutoThresholdRegression<T> autoThreshold)
Copyright © 2015–2021 Fiji. All rights reserved.