A computer program for recognizing and counting the track of ions that are detected with polycarbonate detector has been written using MATLAB software. There are different programs for counting the track of ions in different detectors. Algorithm of this program specially has been written for polycarbonate detector and also for low magnification of optical microscope. Thus, with this method as per image of optical microscope, greater numbers of ions are visible and general distribution of ions can be better known. However, the accuracy of counting program is very high.

1. Introduction

Polycarbonate is one of the detectors that is used in solid-state electrochemical etching detection method. When ions strike with polycarbonate detector, tracks are generated in detector. After several hours of etching in special solution and applying high voltage to polycarbonate, ion tracks can be seen with unaided eyes. This detection method has been being used for more than three decades by Sohrabi et al. [15]. After etching detector and applying high voltage to etching chamber, ion tracks must be counted and locally determined. A picture is taken from tracks, using optical microscope and CCD camera that is connected to computer. This picture is read by the proposed algorithm, and then the number of ion tracks is counted and locally determined with high accuracy. A different magnification is used for seeing the tracks. Our optical microscope has three magnification degrees: ten times, forty times, and hundred times. The goal is counting the total number of ions; therefore, if the image magnification is low, then more ion tracks can be seen in the picture and distribution will be shown better. For this reason, program algorithm is written for picture with low magnification and also it has high accuracy.

2. Algorithm of New Method

A variety of methods for counting ion tracks in different detectors have been proposed so far [69]. The presented program in this study is written specially for the polycarbonate detector and also for low magnification. Comparison is done between pixels and this procedure continues in the whole of the picture. Using this algorithm, all of the tracks are determined and the coordinates of them are specified. Pictures of ion tracks in polycarbonate detector with high magnification are shown in Figure 1. A picture with low magnification is shown in Figure 2.

The algorithm of the program is as follows:reading the image;converting image to gray scale: in order to improve the accuracy of counting, image is converted to black and white image;inverting the image;converting image to binary: after inverting the image, it should convert to binary. At first, threshold level should be determined such that the tracks are perfectly specified. This threshold level has a significant effect on the final counting process;comparison of pixels: this part is the main and most important part of the program. Program begins from second column and second row and compares the current pixel with surrounding pixels. After comparison, this method is repeated for next pixel. This comparison is done for whole pixels of the picture and finally, number of tracks and local coordinates are determined. The flowchart of program is shown in Figure 3.

According to the algorithm, the comparing method is pixel by pixel in image. With this method, high accuracy in counting has been acquired.

3. Algorithm Simulation

The procedure of the proposed algorithm is explained on a sample image in the following.

The tracks are specified in Figure 4 with red circles. All the tracks are found in this sample image. Each pixel in the image is like sample pixel in Figure 5.

4. Conclusion

As it is seen from images, the new algorithm, which is based to read low magnification images, has high accuracy. The algorithm has many advantages. For example, more regions and tracks could be investigated and counted.