Create CSV File
Title
Question
RGB Examples?
How to read images into arrays?
<span style="color: rgb(51, 51, 51); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; line-height: 20px; white-space: pre;">How to check the dimensions of an array?</span>
<span style="color: rgb(51, 51, 51); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; line-height: 20px; white-space: pre;">Example to access parts of an image How to stride over an array?</span>
Python-3.4.3 Image-manipulation-using-Arrays 03-04 min 10-20 sec
Answers:
You can use imread command to load the file in an array(1), imshow to display the image(2), and shape to view the dimensions of the array(3). Array slicing is used to get the parts of the image(4)
For example
1. a=imread("filename")
2. imshow(a)
3. a.shape
4. a[255:, :255]
Login to add comment