Question: Bel Turk's Image Chopper Filename: Wire a function that uses the croplmage function above. ( Top function calls lower function... happens all the time )

Bel Turk's Image Chopper
Filename:
Wire a function that uses the croplmage function above. (Top function calls lower function... happens all the time)
function [imageMatrix3D]= imageChopper( origImageMatrix, numRows, numCols )
imageChopper takes the input image matrix and crops it multiple times, each time, creating a new image matrix. The numRows and numCols specify how to chop it and how many images will result. For example: If numRows and numCols \(=2\), there will be a total of 4 cropped images. IF numRows \(=3\) and numCols \(=2\), there will be a total of 6 cropped images.
The cols and rows should be divided evenly across the original image. Each resulting cropped image should be the same size within one pixel. Keep this in mind when dividing the pixel counts.
The resulting images should be stored in a single 3D matrix. The "page" concept should indicate the cropped image number. The third dimension indexes the cropped image, and the first and second are row and col respectively as you are used to.
See here for more info on multi-dimensional arrays:
The cropped image numbering sequence should be the same as that provided by subplot.
A single 3D matrix should be returned by the function.
 Bel Turk's Image Chopper Filename: Wire a function that uses the

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 Programming Questions!