![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Compute clusters centroids given an input image and the image of classes. More...
Compute clusters centroids given an input image and the image of classes.
Consider:
The algorithm computes the properties of each cluster, namely the centroids, the standard deviation along each dimension and the compactness. For empty clusters, centroids coordinates are set to 0.
Input and output attributes of the algorithm are:
: the input image of data vectors,
: image giving, for each data vector, the class which it belongs to; this image must be a single grey-level image, and it must have same size than
along x, y and z axis,
: total number of clusters; if not intialized, this number is computed by the algorithm from the InClassImg, which may require a little bit more time,
: collection of clusters properties computed by the algorithm, namely:
: optional; collection of population per cluster.Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InHomogeneousImg | [Input] Homogeneous image | X |
| ipsdk::imaproc::attr::InClassImg | [Input] Image of classes | X |
| ipsdk::imaproc::attr::InOptSingleGreyMaskImg | [Input Optional] Binary image for masking operation for each (x, y, z) coordinate regardless to (c, t) coordinates | X |
| ipsdk::imaproc::attr::InOptNbClusters | [Input Optional] Number of clusters | X |
| ipsdk::imaproc::attr::OutClustersCenters | [Output] Centers of clusters | ipsdk::processor::allocate (_pOutClustersCenters) |
| ipsdk::imaproc::attr::OutOptNbEltsPerCluster | [Output Optional] Number of elements per cluster | X |
Global rule description for algorithm :
ipsdk::processor::If (
ipsdk::processor::isSet (_pInOptSingleGreyMaskImg),
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_3d,_pInHomogeneousImg,_pInOptSingleGreyMaskImg),
ipsdk::processor::none ())
| IPSDKIPLCLASSIFICATION_API attr::ClustersCentersPtr ipsdk::imaproc::classif::kMeansComputeCenters | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::image::ImageConstPtr & | pClassImg | ||
| ) |
wrapper function for Compute clusters centroids given an input image and the image of classes
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLCLASSIFICATION_API attr::ClustersCentersPtr ipsdk::imaproc::classif::kMeansComputeCenters | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::image::ImageConstPtr & | pClassImg, | ||
| const ipsdk::image::ImageConstPtr & | pMaskImg | ||
| ) |
wrapper function for Compute clusters centroids given an input image and the image of classes
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLCLASSIFICATION_API attr::ClustersCentersPtr ipsdk::imaproc::classif::kMeansComputeCenters | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::image::ImageConstPtr & | pClassImg, | ||
| const ipUInt32 | nbClusters | ||
| ) |
wrapper function for Compute clusters centroids given an input image and the image of classes
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLCLASSIFICATION_API attr::ClustersCentersPtr ipsdk::imaproc::classif::kMeansComputeCenters | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::image::ImageConstPtr & | pClassImg, | ||
| const ipsdk::image::ImageConstPtr & | pMaskImg, | ||
| const ipUInt32 | nbClusters | ||
| ) |
wrapper function for Compute clusters centroids given an input image and the image of classes
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14