annotool.gui.model
Class ROIAnnotator
java.lang.Object
annotool.gui.model.ROIAnnotator
public class ROIAnnotator
- extends java.lang.Object
ROI annotator executes the algorithms in ROI annotation mode.
Constructor Summary |
ROIAnnotator(int interval,
int paddingMode,
java.lang.String channel,
java.util.ArrayList<ChainModel> chainModels,
int[] selectedImages,
java.lang.String exportDir,
boolean isExport,
boolean isMaximaOnly,
ImageReadyPanel pnlImages)
|
Method Summary |
void |
exportPrediction(int startCol,
int endCol,
int startRow,
int endRow,
int startSlice,
int endSlice,
int roiWidth,
int roiHeight,
int roiDepth,
int[] predictions,
java.lang.String baseFile,
java.lang.String classKey,
int width,
int height,
int stackSize,
boolean[] isMaxima)
|
void |
markResultsOnImage(ij.ImagePlus imp,
int[] predictions,
int roiWidth,
int roiHeight,
boolean[] isMaxima,
int startCol,
int startRow,
int endCol,
int endRow)
|
float[] |
selectGivenIndices(float[] features,
int[] indices)
Selects the features based on pre-determined set of indices for a single image |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROIAnnotator
public ROIAnnotator(int interval,
int paddingMode,
java.lang.String channel,
java.util.ArrayList<ChainModel> chainModels,
int[] selectedImages,
java.lang.String exportDir,
boolean isExport,
boolean isMaximaOnly,
ImageReadyPanel pnlImages)
- Parameters:
size
- : ROI Window Sizeinterval
- : Increment for sliding ROI window over the target imagepaddingMode
- : Determines the mode used to pad the image for annotation near the image edges.
Modes - ROIParameterPanel.NONE, ROIParameterPanel.SYMMETRICchannel
- : Channel information of the imageselectedImages:
- List of indices for images selected for annotations
selectGivenIndices
public float[] selectGivenIndices(float[] features,
int[] indices)
- Selects the features based on pre-determined set of indices for a single image
- Parameters:
features
- indices
-
- Returns:
- Selected features
markResultsOnImage
public void markResultsOnImage(ij.ImagePlus imp,
int[] predictions,
int roiWidth,
int roiHeight,
boolean[] isMaxima,
int startCol,
int startRow,
int endCol,
int endRow)
exportPrediction
public void exportPrediction(int startCol,
int endCol,
int startRow,
int endRow,
int startSlice,
int endSlice,
int roiWidth,
int roiHeight,
int roiDepth,
int[] predictions,
java.lang.String baseFile,
java.lang.String classKey,
int width,
int height,
int stackSize,
boolean[] isMaxima)