Binarization of gray

Download Report

Transcript Binarization of gray

Binarization of gray-scale
hologram
Fan Jiang
Fall 2006
Introduction



Optics Diffraction theory and hologram
Motivation
Approach
Simple threshold
Random binarization
High-frequency binarizaion

Result comparison
(The whole project is done on Mathematica)
Optics diffraction theory and
hologram


Optics diffraction theory-Fraunhofer diffractionFourier Transform
Hologram-can be used to reconstruct the target
object.
Target
object
binarization
hologram
hologram
Gray-scale
binary
Gray-scale
Reconstruction
image
Motivation



Computer-generated holograms are widely
used today.
However, during the lithography, we can only
write binary holograms on the mask.
Binarize the gray-scale hologram is important!
Approach 1


Want to change a gray scale to binary?
Threshold!
Threshold = Median [hologram data]
Histogram of the gray-scale hologram
Binary hologram
-
Approach 2

Random Binarization
Create n (n< total pixel number) pseudorandom number as the
address of data, and use the median number for these data as
the threshold, then binary these part of numbers.
Repeat this process until all the numbers become 0 or 1.

Process
No
Gray-scale
hologram
Binarize n
random pixels
All the
pixels are
binarized?
Yes
Binary
hologram
Approach 2
Binarization Result:

The change of histogram:
Binary hologram:
60
50
2000
30000
35000
40000
35000
2000
35000
25000
30000
2000
35000
17500
20000
30000
35000
35000
30000
25000
30000
20000
30000
25000
30000
30000
15000
25000
30000
30000
25000
30000
20000
30000
30000
1500
25000
1500
20000
15000
25000
25000
12500
25000
20000
25000
20000
15000
20000
20000
15000
20000
20000
10000
20000
15000
20000
20000
15000
20000
1000
15000
10000
15000
15000
10000
15000
7500
15000
10000
10000
10000
10000
10000
5000
10000
10000
10000
5000
500
5000
5000
5000
5000
5000
2500
0.2
0.2
0.5
10.5
0.4
1
0.6
1.5
2 0.8 1 0.82
11.25
3 1.2
1
2.5
1.43
1.2
4
0.25
0.2
0.5 0.4
0.4
1 0.6
0.75
1.5
0.6
20.8
2.51.5
1
3
40
30
20
10
0
0
10
20
30
40
50
60
Approach 3

High-frequency binarization
In this method, threshold is still needed. Median [hologram data]
is chosen as the threshold.
But after using threshold, pick up the max. intensity under the
threshold, and set it to 1. Similarly, pick up the min. intensity
above the threshold, set it to 0.
So, all the peaks are set to be 1, all the valleys are set to be 0,
independent on the threshold.
----- almost all the high frequency information has been saved.
Approach 3

Example in 1-D:
Binary hologram:
60
50
40
30
20
10
0
0
10
20
30
40
50
60
Results
Now compare the reconstructions of the three binary
holograms.
Gray-scale
Method 1

60
50
40
30
20
10
0
Method 2
Method 3
60
0
10
20
30
40
50
60
0
10
20
30
40
50
60
60
50
50
40
40
30
30
20
20
10
10
0
0
10
20
30
40
50
60
0
Results

We can also compare the mean-square error of the
results.

Gray-scale: 0.01

Method 1: 1.021

Method 2: 1.019

Method 3: 0.81
Conclusion

As the result shown above. In my case, highfrequency binarization method is the best
one among the three of them.

But all of them are much worse than the
result of gray-scale.

Better binarization method is still needed! –
Future work.