Class CellCountsCV
- All Implemented Interfaces:
- PathInteractivePlugin<BufferedImage>,- PathPlugin<BufferedImage>
Currently, only H&E or hematoxylin and DAB are supported.
An improved plugin would be desirable to perform the task in a more general way, and without requesting the 'magnification' by default (which is less meaningful than resolution/pixel size).
- 
Field SummaryFields inherited from class qupath.lib.plugins.AbstractInteractivePluginparams
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ObjectDetector<BufferedImage> createDetector(ImageData<BufferedImage> imageData, ParameterList params) Create a new ObjectDetector, compatible with the specified ImageData and ParameterList.getDefaultParameterList(ImageData<BufferedImage> imageData) This should return a default ParameterList containing any information that is needed to repeat the task exactly.Get a brief description of the plugin's purpose & operation.(Optional) short one-line description of the results, e.g.getName()Get the name of the plugin for display.protected doublegetPreferredPixelSizeMicrons(ImageData<BufferedImage> imageData, ParameterList params) Get the preferred pixel size that would be used for the specified ImageData and ParameterList.protected intgetTileOverlap(ImageData<BufferedImage> imageData, ParameterList params) Returns zero - indicating no overlap...protected booleanparseArgument(ImageData<BufferedImage> imageData, String arg) Parse the input argument, returning 'true' if the argument is valid and it's possible to run the plugin.Methods inherited from class qupath.lib.plugins.AbstractTileableDetectionPluginaddRunnableTasksMethods inherited from class qupath.lib.plugins.AbstractDetectionPlugingetParentObjects, getSupportedParentObjectClassesMethods inherited from class qupath.lib.plugins.AbstractInteractivePluginalwaysPromptForObjects, getLoggableParameters, getParameterListMethods inherited from class qupath.lib.plugins.AbstractPluginaddWorkflowStep, getTasks, postprocess, preprocess, rearrangeByStride, requestHierarchyUpdate, runPluginMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface qupath.lib.plugins.PathPluginrunPlugin
- 
Constructor Details- 
CellCountsCVpublic CellCountsCV()
 
- 
- 
Method Details- 
parseArgumentDescription copied from class:AbstractPluginParse the input argument, returning 'true' if the argument is valid and it's possible to run the plugin.This is called from within runPlugin. If it returns 'true', getTasks will be called and then runTasks will submit these to the plugin runner to run. If it returns 'false', runPlugin will immediately abort and return false as well. Since this could result in some internal variables changed (e.g. a ParameterList), implementing classes can't be assumed to be thread-safe; plugins should be created and called from a single thread, although they may use multiple threads (via a PluginRunner) to complete their tasks. - Overrides:
- parseArgumentin class- AbstractInteractivePlugin<BufferedImage>
- Parameters:
- imageData-
- arg-
- Returns:
 
- 
getDefaultParameterListDescription copied from class:AbstractInteractivePluginThis should return a default ParameterList containing any information that is needed to repeat the task exactly.- Specified by:
- getDefaultParameterListin interface- PathInteractivePlugin<BufferedImage>
- Specified by:
- getDefaultParameterListin class- AbstractInteractivePlugin<BufferedImage>
- Parameters:
- imageData-
- Returns:
 
- 
getNameDescription copied from interface:PathPluginGet the name of the plugin for display.This should be descriptive and, above all, short - as it may be used for menu item names & dialog box titles. - Returns:
 
- 
getDescriptionDescription copied from interface:PathPluginGet a brief description of the plugin's purpose & operation.If no description is provided, this may return null. - Returns:
 
- 
getLastResultsDescriptionDescription copied from interface:PathPlugin(Optional) short one-line description of the results, e.g. to say how many objects detected. GUIs may choose to display this on a label during interactive processing.- Returns:
 
- 
getPreferredPixelSizeMicronsprotected double getPreferredPixelSizeMicrons(ImageData<BufferedImage> imageData, ParameterList params) Description copied from class:AbstractTileableDetectionPluginGet the preferred pixel size that would be used for the specified ImageData and ParameterList.This is useful in deciding whether to break large regions into smaller, parallelizable tiles. - Specified by:
- getPreferredPixelSizeMicronsin class- AbstractTileableDetectionPlugin<BufferedImage>
- Parameters:
- imageData-
- params-
- Returns:
 
- 
createDetectorprotected ObjectDetector<BufferedImage> createDetector(ImageData<BufferedImage> imageData, ParameterList params) Description copied from class:AbstractTileableDetectionPluginCreate a new ObjectDetector, compatible with the specified ImageData and ParameterList.- Specified by:
- createDetectorin class- AbstractTileableDetectionPlugin<BufferedImage>
- Parameters:
- imageData-
- params-
- Returns:
 
- 
getTileOverlapReturns zero - indicating no overlap... the aim is speed.- Specified by:
- getTileOverlapin class- AbstractTileableDetectionPlugin<BufferedImage>
- Parameters:
- imageData-
- params-
- Returns:
- The overlap size in pixels, or 0 if overlapped tiles are not supported.
 
 
-