image_information {bwimage} | R Documentation |
Provide the information of: number of black, white and transparent pixels, total number of pixels, height and width size.
image_information(imagematrix)
imagematrix |
The matrix to be analysed. |
Black |
Number of black pixels |
White |
Number of white pixels |
Transparent |
Number of transparent pixels |
Total |
Total number of pixels |
Height |
Size in height |
Width |
Size in width |
Carlos Biagolini-Jr.
threshold_color
# First, get a matrix from your image. Here an example of a bush image is used.
bush<-system.file("extdata/bush.JPG",package ="bwimage")
bush_imagematrix<-threshold_color(bush, "jpeg", "proportional",compress_rate = 0.1)
image_information(bush_imagematrix)