image_information: Summary of image information

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ImageAnalysis.R

Description

Provide the information of: number of black, white and transparent pixels, total number of pixels, height and width size.

Usage

1
image_information(imagematrix)

Arguments

imagematrix

The matrix to be analysed.

Value

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

Author(s)

Carlos Biagolini-Jr.

See Also

threshold_color

Examples

1
2
3
4
# 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)

bwimage documentation built on April 23, 2020, 1:06 a.m.