function image = RemakeImage(image) % image = RemakeImage(red, green, blue) % This function remakes an image in the proper dimensions % Author : Sasakthi Abeysinghe, Timothy Simpson % Date : 04/05/2006 global imageHeight; global imageWidth; dim = imageHeight * imageWidth; image = reshape([image(1:dim), image((dim+1):(2*dim)), image((2*dim+1):(3*dim))], imageHeight, imageWidth, 3);