public interface Predictor
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes resources associated with this predictor.
|
double |
getCount()
Returns the most recent count.
|
FloatProcessor |
getDensityMap()
Returns the most recently calculated density map prediction.
|
FloatProcessor |
getLocalCountMap()
Returns the most recently-calculated local count map.
|
double |
getMaximumLocalCount(int boxSize)
Returns the maximum local count value.
|
void |
predict(ImageProcessor ip)
Makes a density map prediction from a 2D image.
|
void |
setup(String pathToModel)
Initializes the predictor with a saved TensorFlow model bundle.
|
void close()
double getCount()
throws UninitializedPredictorException
UninitializedPredictorExceptionFloatProcessor getDensityMap() throws UninitializedPredictorException
UninitializedPredictorExceptionFloatProcessor getLocalCountMap() throws NoLocalCountMapException
NoLocalCountMapExceptiondouble getMaximumLocalCount(int boxSize)
throws UninitializedPredictorException
boxSize - The width of the square kernel.UninitializedPredictorExceptionvoid predict(ImageProcessor ip) throws ImageBitDepthException, SessionClosedException
ip - The image to perform a prediction on.ImageBitDepthExceptionSessionClosedExceptionvoid setup(String pathToModel)
pathToModel - The path to a saved TensorFlow model bundle.Copyright © 2018 The Laboratory of Experimental Biophysics. All rights reserved.