![]() |
cellUview 1.0.0
A real-time image processing and analysis suite for digital microscopy.
|
#include <kMeansCluster.h>
Public Member Functions | |
| void | receiveFrame (frame newFrame) |
| std::string | getParamLabel () |
| void | updateClusterCount (int value) |
| void | updateSettings (std::map< std::string, std::string >) |
| void | centroidPercentage () |
| std::list< std::pair< cv::Vec3b, std::string > > | getClusterAnalysis () |
Public Member Functions inherited from imageProcessor | |
| virtual void | receiveFrame (frame newFrame)=0 |
| virtual void | updateSettings (std::map< std::string, std::string >)=0 |
| virtual std::string | getParamLabel ()=0 |
| void | registerCallback (imageProcessor *cb) |
| bool | toggleEnable () |
| bool | getEnabled () |
Public Attributes | |
| int | num_clusters = 0 |
| int | clusterSlider = 2 |
Additional Inherited Members | |
Protected Attributes inherited from imageProcessor | |
| imageProcessor * | frameCb = nullptr |
| bool | enabled = false |
Image analysis class to sort incoming frames into centroids which are used to classify regions in the frame.
| void kMeansCluster::centroidPercentage | ( | ) |
Enables percentage calculation for cluster size.
| std::list< std::pair< cv::Vec3b, std::string > > kMeansCluster::getClusterAnalysis | ( | ) |
Getter for k-means cluster percentages to be displayed on the GUI.
|
inlinevirtual |
Implements imageProcessor.
|
virtual |
Recieves new frames for processing via callback.
Implements imageProcessor.
| void kMeansCluster::updateClusterCount | ( | int | value | ) |
Updates k-means cluster count value for processing method.
| value | GUI slider value which is passed to give mapping to clusterSlider. |
|
virtual |
Implemented from ImageProcessor. Updates settings based on metadata.
| metadata | standard map of strings containing metadata |
Implements imageProcessor.