Description Usage Arguments Examples
Documentation for the extract method of single cluster/class from segmented images
1 2 3 4 5 6 7 8 |
segimg |
an object of class Table or THsegments or grayimage |
... |
graphical parameters to imageplot |
cluster |
cluster number to be extracted |
org_image |
original image to be segmented |
b |
number of bands in the original image |
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
library(stars)
tif <- read_stars(system.file("extdata/image.tif", package="ImageSegmentation"))
p <- seg_kmeans(tif,3,5)
extract(p,2,tif,3)
e <- RGBtoGRAY(tif)
s <- segmentation_threshold(e)
extract(s, cluster=3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.