Question: Basic Image Analysis Do This: Using the code from the pre-class assignment, load in the image landscape.jpeg into this notebook. We will be using this

 Basic Image Analysis Do This: Using the code from the pre-class

Basic Image Analysis Do This: Using the code from the pre-class assignment, load in the image landscape.jpeg into this notebook. We will be using this image for the following examples. These are meant to help you become more familiar with working with 2D arrays, indexing, masking, etc. When you load in the image, assign it to a variable named picture In [ ] : # Put your code here Now that the image has been loaded in, let's separate the red, green, and blue channels into separate 2D arrays. In [18: img array np.asarray (picture) picture-array = ing-array . copy() We have to make a copy of the array so as to not ove red array, green_array, blue_array picture_arrayt:,,01, picture_arrayl:,:,11, picture NameError Traceback (most recent call last) ipython-input-18-fc0f4997b5d4> in > 1 img_array = np.asar ray (picture) 2 picture arrayimg_array.copy) wwe have to make a copy of the array so as to not overwrite the original image picture, array[1 ,2 ] NameError: name 'np' is not defined 3 red array, green-array, blue-array = picture_array[:,0), picture array(:,:, 1]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!