Description Usage Arguments Details Value Author(s) References See Also Examples
Counts the rectangular blocks by moving the diagonal of a binary image. The count is returned as the estimation of the number of well-separated clusters for the given dataset.
1 |
img |
A binary image matrix of dissimilarities. It is produced by using the function binimage. |
disp |
A logical value whether the binary image will be displayed or not. The default value is TRUE. |
This function counts the overlapped rectangle blocks as one block.
k |
Number of clusters |
Zeynel Cebeci
Cebeci, Z. & Yildiz, F. (2015). Gorsel Kumelenme Egilimi Degerlendirmesi ve R'de Uygulamasi. Cukurova Universitesi Ziraat Fakultesi Dergisi, 30(2):1-8. (URL: https://dergipark.org.tr/en/download/article-file/219860)
binimage
,
findk
,
genbinimg
,
greyimage
,
vatimage
,
vatdisp
1 2 3 4 5 6 7 8 9 | # Load the dataset protcarbo
data(protcarbo)
# Obtain the ODM matrix for VAT analysis
vatmat <- vatimage(protcarbo, disp=TRUE)$odm
greymat <- greyimage(vatmat, greylevel=256)
binmat <- binimage(greymat, method="otsu")$binimg
# Find the number of clusters
k <- findk2(binmat, disp=TRUE)
cat("Number of clusters detected:", k, "\n")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.