Why does the image structure show different content

r
image_processing

#1

Hello,

I am using the library ‘pixmap’ to do image analysis in R.My code is:

library('pixmap')
image <- read.pnm("C:/Users/Dataset/Downloads/image.ppm")

When I execute the following pieces in code,please notice the dissimilarity in the outputs.

Whereas str(image) shows that the image is stored in some sort of matrix,just typing image into the console displays some details about the image.
Why is it like that?Shouldn’t the matrix be shown when I type in image.


#2

that behaviour is governed by how that class is displayed.

it is different for every class

also see