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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -