R determine image width and height in pixels -
I have an image on the disk, it's called image.jpg, how can I determine that the image width and height How much is pixel r using statistical language
There is no such idea that starts with a minimum example, I'm scared.
If a person can easily suggest packages and functions, then I possibly can do the rest.
You can use the jpeg
package to be very self-explanatory Required:
required (jpeg) img & lt; - readJPEG ("myimage.jpg") Dim (IMG) [1] 700 700 3
The same author (Simon Arbeck) also sent png
and Tiff
package containing the same syntax ( readPNG
and readTIFF
)
Comments
Post a Comment