Package ome.api
Interface IProjection
-
- All Superinterfaces:
ServiceInterface
public interface IProjection extends ServiceInterface
Provides methods for performing projections of Pixels sets.- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description static intMAXIMUM_INTENSITYMaximum intensity projection (MIP)static intMEAN_INTENSITYMean intensity projectionstatic java.lang.String[]METHODOLOGY_STRINGSMethodology stringsstatic intSUM_INTENSITYSum intensity projection
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longprojectPixels(long pixelsId, ome.model.enums.PixelsType pixelsType, int algorithm, int tStart, int tEnd, java.util.List<java.lang.Integer> channels, int stepping, int zStart, int zEnd, java.lang.String name)Performs a projection through selected optical sections and optical sections for a given set of time points of a Pixels set.byte[]projectStack(long pixelsId, ome.model.enums.PixelsType pixelsType, int algorithm, int timepoint, int channelIndex, int stepping, int start, int end)Performs a projection through the optical sections of a particular wavelength at a given time point of a Pixels set.
-
-
-
Field Detail
-
MAXIMUM_INTENSITY
static final int MAXIMUM_INTENSITY
Maximum intensity projection (MIP)- See Also:
- Constant Field Values
-
MEAN_INTENSITY
static final int MEAN_INTENSITY
Mean intensity projection- See Also:
- Constant Field Values
-
SUM_INTENSITY
static final int SUM_INTENSITY
Sum intensity projection- See Also:
- Constant Field Values
-
METHODOLOGY_STRINGS
static final java.lang.String[] METHODOLOGY_STRINGS
Methodology strings
-
-
Method Detail
-
projectStack
byte[] projectStack(long pixelsId, ome.model.enums.PixelsType pixelsType, int algorithm, int timepoint, int channelIndex, int stepping, int start, int end)Performs a projection through the optical sections of a particular wavelength at a given time point of a Pixels set.- Parameters:
pixelsId- The source Pixels set Id.pixelsType- The destination Pixels type. Ifnull, the source Pixels set pixels type will be used.algorithm-MAXIMUM_INTENSITY,MEAN_INTENSITYorSUM_INTENSITY. NOTE: When performing aSUM_INTENSITYprojection, pixel values will be pinned to the maximum pixel value of the destination Pixels type.timepoint- Timepoint to perform the projection.channelIndex- Index of the channel to perform the projection.stepping- Stepping value to use while calculating the projection. For example,stepping=1will use every optical section fromstarttoendwherestepping=2will use every other section fromstarttoendto perform the projection.start- Optical section to start projecting from.end- Optical section to finish projecting.- Returns:
- A byte array of projected pixel values whose length is equal to
the Pixels set
sizeX * sizeY * bytesPerPixelin big-endian format. - Throws:
ValidationException- Where:algorithmis unknowntimepointis out of rangechannelIndexis out of rangestartis out of rangeendis out of rangestartis greater thanend- the Pixels set qualified by
pixelsIdis unlocatable.
- See Also:
projectPixels(long, PixelsType, int, int, int, List, int, int, int, String)
-
projectPixels
long projectPixels(long pixelsId, ome.model.enums.PixelsType pixelsType, int algorithm, int tStart, int tEnd, java.util.List<java.lang.Integer> channels, int stepping, int zStart, int zEnd, java.lang.String name)Performs a projection through selected optical sections and optical sections for a given set of time points of a Pixels set. The Image which is linked to the Pixels set will be copied usingIPixels.copyAndResizeImage(long, Integer, Integer, Integer, Integer, List, String, boolean).- Parameters:
pixelsId- The source Pixels set Id.pixelsType- The destination Pixels type. Ifnull, the source Pixels set pixels type will be used.algorithm-MAXIMUM_INTENSITY,MEAN_INTENSITYorSUM_INTENSITY. NOTE: When performing aSUM_INTENSITYprojection, pixel values will be pinned to the maximum pixel value of the destination Pixels type.tStart- Timepoint to start projecting from.tEnd- Timepoint to finish projecting.channels- List of the channel indexes to use while calculating the projection.stepping- Stepping value to use while calculating the projection. For example,stepping=1will use every optical section fromstarttoendwherestepping=2will use every other section fromstarttoendto perform the projection.zStart- Optical section to start projecting from.zEnd- Optical section to finish projecting.name- Name for the newly created image. Ifnullthe name of the Image linked to the Pixels qualified bypixelsIdwill be used with a "Projection" suffix. For example, GFP-H2B Image of HeLa Cells will have an Image name of GFP-H2B Image of HeLa Cells Projection used for the projection.- Returns:
- The Id of the newly created Image which has been projected.
- Throws:
ValidationException- Where:algorithmis unknowntStartis out of rangetEndis out of rangetStartis greater thantEndchannelsis null or has indexes out of rangezStartis out of rangezEndis out of rangezStartis greater thanzEnd- the Pixels set qualified by
pixelsIdis unlocatable.
- See Also:
projectStack(long, PixelsType, int, int, int, int, int start, int)
-
-