cellUview 1.0.0
A real-time image processing and analysis suite for digital microscopy.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
kMeansCluster Class Reference

#include <kMeansCluster.h>

Inheritance diagram for kMeansCluster:
imageProcessor

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
imageProcessorframeCb = nullptr
 
bool enabled = false
 

Detailed Description

Image analysis class to sort incoming frames into centroids which are used to classify regions in the frame.

Member Function Documentation

◆ centroidPercentage()

void kMeansCluster::centroidPercentage ( )

Enables percentage calculation for cluster size.

◆ getClusterAnalysis()

std::list< std::pair< cv::Vec3b, std::string > > kMeansCluster::getClusterAnalysis ( )

Getter for k-means cluster percentages to be displayed on the GUI.

◆ getParamLabel()

std::string kMeansCluster::getParamLabel ( )
inlinevirtual
Returns
paramLabel, std::string containing metadata parameter

Implements imageProcessor.

◆ receiveFrame()

void kMeansCluster::receiveFrame ( frame  newFrame)
virtual

Recieves new frames for processing via callback.

Implements imageProcessor.

◆ updateClusterCount()

void kMeansCluster::updateClusterCount ( int  value)

Updates k-means cluster count value for processing method.

Parameters
valueGUI slider value which is passed to give mapping to clusterSlider.

◆ updateSettings()

void kMeansCluster::updateSettings ( std::map< std::string, std::string >  metadata)
virtual

Implemented from ImageProcessor. Updates settings based on metadata.

Parameters
metadatastandard map of strings containing metadata

Implements imageProcessor.


The documentation for this class was generated from the following files: