Once the shell script "triton" is configured for your own environment, you may run Triton. The directory Triton/sample contains a sample image, sample.raw, to illustrate the use of Triton.
First run Triton typing:
triton
The main menu appears on the screen. To load the image in memory, first select the memory where the image will be stored, image 0 for instance. Then click on the "Read image" button.
The image to be read contains 512 lines, and each line 512 pixels. Check the default values of width and height. In the file sample.raw pixel values are integer numbers each one encoded on one byte: select the "Raw byte" option on the top of the read menu.
click twice on the directory containing the file: "samples" in our example. The list on the right side of the menu displays all the files in the current directory. Click twice on the image file name, sample.raw. The read operation is then automatically processed.
Once the image is load in the selected memory, display it clicking on "Display image".
The image may be greatly enhanced using Fourier filtering. We will explain in detail the procedure to apply spatial and frequential filters to achieve this enhancement.
The discontinuities on opposite edges of the direct image introduce false high frequency components in its Fourier transform. We will use a rectangular filter to remove these discontinuities:
filter width = 30: the width of the smooth transitions on the edges of the filter is 30 pixels.
X1 = 0, Y1 = 0: the upper left corner of the filter is at (0,0).
X2 = 511, Y2 = 511: the lower right corner is at (511,511). Thus a narrow stripe of 30 pixels all around the image will be smoothed.
To apply this filter to the image you have to multiply the contents of the two memories 0 and 1:
Now you may compute the Fourier transform of image 1: click on "Fourier transform". Once the calculus is achieved display the image 1 which represents now a Fourier transform. The aim of the frequential filtering that we will now process is to remove the very low frequencies from 0 to 20 and the very high frequencies beyond 150 in Fourier space: this is a band pass filter. To built the corresponding filter:
the filter is at the origin of the Fourier space: X=0 and Y=0.
the filter is circular: eccentricity = 1.0.
set A=0; B=20; C=150; D=200. In this example, the ascending edge must not go beyond 20 because important features of the image could be removed. On the contrary we may build a larger descending edge: larger filter edges, lower Gibbs effect.
Check the profile of this filter display image 2, by selecting "Profiles" on the top of the image window; then choose "Horizontal profile" and click on the point (0,0). The profile of the filter along the axe (Ox) is displayed. The smooth ascending transition begins at x = A = 0 and terminates at x = B = 20 with a smooth profile to avoid Gibbs effect. The filter value is 1.0 between 20 and 150 pixels as specified. The smooth descending transition begins at x = C = 150 and terminates at x = D = 180. Note that frequential filters are always symmetric for mathematical consistency.
You may now apply this frequential filter on image 1 multiplying it by image 2. Use the same procedure as for the rectangular filter:
Now the image 1 is the filtered Fourier transform of the original image. You
may display it to see which frequencies have been retained. Compute the inverse
Fourier transform of image 1 and display image 1 to see the result of the
filtering.
Comparing image 0 ( the original one) and image 1 (the filtered
image), one may see that the highly contrasted background has been flattened
suppressing the very low spatial frequencies. The image has also been smoothed
removing the noise in the high frequencies, where the signal to noise ratio is
small.