image_getpixel: Extract pixel color using specified point geometry

View source: R/oxy-pixels.R

image_getpixelR Documentation

Extract pixel color using specified point geometry

Description

Extracts hex color of the pixel at the specified location

Usage

image_getpixel(img, geometry)

Arguments

img

magick image

geometry

point geomentry (generated by 'magick::geometry_point()') in the format ('+x+y')

Value

hex value of the color

See Also

editing,transform

Examples

## Not run: 
if(interactive()){
 frink <- image_read("https://jeroen.github.io/images/frink.png")
 image_getpixel(frink, geometry_point(100,100))
 }

## End(Not run)

dmi3kno/bunny documentation built on Dec. 7, 2022, 7:22 p.m.