This preview shows page 1. Sign up to view the full content.
Unformatted text preview: If this width is not % an integer, make it so with the floor() function. %- The last column of each panel is a multiple of the width, and the % first column of each panel is 1 + a multiple. For example, if the % panel width is 50 pixels, columns 51 to 100 will hold the second % panel (or column of panels). %- The above is true for rows and heights. % Hint: % A two-by-two comic (such as xkcd.jpg) boils down to the well % documented four quadrant problem. If you are having trouble starting, % start with splitting an image into four quadrants, and then generalize % that code for any number of rows and columns. img = imread(fn); [r c clr] = size(img); comicrows = floor(r./numr); comiccols = floor(c./numc); panelrow = comicrows.*row_num; p...
View Full Document
This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.
- Spring '08