Hi
In this video when we reshape image to (165000, 3) i.e linear shape in 3 channels. So I’m confused about number of pixels. Does this image have number of pixels equal to 165000 X 3=495000 ? And 3 pixels make one color? or it is that number of pixels is 165000. Please elaborate this and explain in detail.
Thank You
Doubt regarding number of pixels
Hey @pasta, let me explain you in detail. So if we have an RGB image, it has a shape of something like (height,width,channels)
right ?..Now what we have done is that we have flattened the height and width of the image making the shape as (height*width,channels)
. So here 165000 * 3 are the total number of pixels in the image including all the R,G as well as B channel.
That’s all !
I hope this clears your doubt !
Happy Learning !