Resizing2 - newRgalaxy = rgalaxy(rowVector, colVector);...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%Galactic Background galaxy = imread('IMG_0311.jpg'); %[rows, cols] = size(galaxy); galaxy = double(galaxy); rgalaxy = galaxy(:,:,1); ggalaxy = galaxy(:,:,2); bgalaxy = galaxy(:,:,3); rowVector = linspace(1, 3000, 2304); rowVector = round(rowVector); colVector = linspace(1, 4000, 3072); colVector = round(colVector);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: newRgalaxy = rgalaxy(rowVector, colVector); newGgalaxy = ggalaxy(rowVector, colVector); newBgalaxy = bgalaxy(rowVector, colVector); newGalaxy(:,:,1) = newRgalaxy; newGalaxy(:,:,2) = newGgalaxy; newGalaxy(:,:,3) = newBgalaxy; newGalaxy = (uint8(newGalaxy)); image(newGalaxy)...
View Full Document

This note was uploaded on 05/01/2011 for the course HCSC 110 taught by Professor Amosjohnson during the Spring '11 term at Morehouse.

Ask a homework question - tutors are online