Index |
 |
The Alabama A & M University Department of Physics Optics and Information Processing |
Optical Correlation Tools Octave/Matlab version
This version of the Optical Correlation Tools is almost identical to the MatLab implementation. The MatLab version requires the Image Processing routines, and makes some different assumptions about the image intensity scale (MatLab uint8 [0-255], Octave [0-63]). Since octave does not implement some functions such as modulus and 2-D convolution, I have added these modules as well. ifftshift is the reverse operation of the Octave fftshift operation. These operations are required for "Optical Convolution" and are used as part of the conv2 routine. conv2 may also be needed for MatLab without the Image Processing libraries.
Since Octave lacks image import and export capabilities, I have added a java class (pict2oct) to extract the RGB channels from gif and jpeg formats, and save them as an octave ascii data file. pict2oct can clip out a subimage, and can use three grayscale images to extract three input channels. This will not help you if you have MatLab w/o IP libs. To export the Octave image as a jpeg (given the licensing issues I don't think I'll offer a gif encoder) use oct2jpeg. oct2jpeg also requires octarr.class and the JpegEncoder from obrador. oct2jpeg allows the image quality to be adjusted (default is 100: no compression, best quality). More info about the java classes can be found in the javadoc folder.
Enjoy...
|