6:52 AM

Image manipulation using Octave.

An image is a collection of pixels.Thus a pixel is a smallest addressable point on an image.The dimensions of an image is represented in terms of the number of pixels.
That is 1024X768 image has a width of 1024 pixels and height of 768 pixels.Any colour in the image can be seen as a combination of three basic colours red green and the blue.Hence the image can  be represented using a three dimensional matrix,where  first layer corresponds to red,next to green and the next to blue.
thus a 1024x768 image consist of three layers each of size 1024x768.that is an image in matrix format can be considered as a combination of three matrices making it a three dimensional matrix of order 1024x768x3.Each element in each of the three matrices has a value representing the colour .For example if it is a 8 bit representation the values range from 0 to 255.

The octave enable images to be loaded into and represented as matrices.the function imread() enables reading images.
im=imread("image name")
now im will be a three dimensional matrix.And normal matrix operations can be performed on im for various manipulations.The various individual bits can be altered to once needs.The matrix can be displayed as an image using the function imshow().that is imshow(matrix).Various other functions on the images can be performed like rotating the image,slicing,resizing etc...The brightest points on the image can be found by determining the one with maximum value of rgb.this has extensive application in detecting purposes like infrared detecting  and the exact point where the user pointed etc...
..................................................................................................................................

0 comments: