Description Usage Arguments Details Value Author(s) References See Also Examples
This function generates the binary ordered dissimilarity matrix (BDM) for VAT analysis.
1 |
img |
A numeric matrix containing the greyscale ordered dissimilarities. |
method |
A character string describes the name of thresholding method to generate the binary image matrix from the greyscale ordered dissimilarities. The default value is |
t |
A numeric threshold value for converting the ordered dissimilarities to a binary image matrix. It is used if the method argument is set to |
q |
A numeric quantile value when the method argument is set to |
greylevel |
An integer describing the grey levels in the greyscale image. The default value is 256. |
disp |
A logical value whether the the ordered dissimilarities image will be displayed or not. The default value is |
Since this function uses the grey-level dissimilarities matrix as the input, the greyscale image should be generated using the function greyimage
at first.
binimg |
Binary ordered dissimilarities matrix |
threshold |
Threshold value computed to generate the binary matrix |
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)
findk
,
findk2
,
genbinimg
,
greyimage
,
vatimage
,
vatdisp
1 2 3 4 5 6 7 8 9 10 | # Load the dataset iris and use the first four feature columns
data(protcarbo)
# Run vatimage to build ordered dissimilarities matrix
vatmat <- vatimage(protcarbo, disp=FALSE)$odm
# Generate grey-level image matrix
greymat <- greyimage(vatmat, greylevel=256, disp=FALSE)
# Generate binary image matrix with automatic thresholding method
binmat <- binimage(vatmat, method="auto", greylevel=256, disp=TRUE)
# Generate binary image matrix with fixed thresholding method
binmat <- binimage(vatmat, method="fixed", t=50, greylevel=256, disp=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.