Fred's ImageMagick Scripts
My scripts are available free of charge for non-commercial use. If you redistribute or incorporate any of these scripts into other free applications, you may use my scripts by simply referencing my name and this web page: Fred Weinhaus and http://www.fmwconcepts.com/imagemagick/index.html For use of my scripts in commercial use or non-free applications, please contact me for
licensing arrangements. Usage, whether stated in script or not, is also subject to the ImageMagick license, which can be found at: http://www.imagemagick.org/script/license.php |
|
The following techniques are compared:
|
|
Pictures Were Obtained from: |
|
My rankings are based solely on visual inspection and personal preferences. |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
Not Processed |
Best: Fuzzy C-Means Close Seconds: Triangle Sahoo P=2 |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
Not Processed |
Close Tie: 2 Color Otsu BCV Isodata K-Means Fuzzy C-Means |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
Not Processed |
Close Tie: 2 Color Otsu BCV Isodata K-Means Fuzzy C-Means Kapur Entropy Sahoo Entropy P=0.1 |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
Not Processed |
Best: 2 Color Close Seconds: Otsu BCV Isodata K-Means |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
Not Processed |
Best: Sahoo Entropy P=0.1 Close Seconds: Sahoo Entropy P=2 Kapur Entropy Fuzzy C-Means |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means Radius=30 |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
Not Processed |
Close Tie: 2 Color Otsu BCV Isodata K-Means Sahoo Entropy P=0.1 Close Second: Fuzzy C-Means Radius=30 |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means Radius=3 |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
|
Tie: Local Adaptive Fuzzy C-Means Radius=3 Close Seconds: 2 Color Otsu BCV Isodata K-Means Kapur Entropy |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
|
Close Tie: 2 Color Otsu BCV Isodata K-Means Sahoo Entropy P=0.1 Close Seconds: Fuzzy C-Means Triangle Method |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
|
Best: Local Adaptive Close Seconds: Triangle Method Sahoo Entropy P=2 Fuzzy C-Means Radius=10 |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
Not Processed |
Close Tie: Otsu BCV Isodata K-Means Triangle Method |
|
Original Image |
2 Color |
Otsu BCV |
|
|
|
|
Isodata |
K-Means |
Fuzzy C-Means |
|
|
|
|
Kapur Entropy |
Sahoo Entropy P=2 |
Sahoo Entropy P=0.1 |
|
|
|
|
Triangle Method |
Local Adaptive |
RESULTS |
|
|
Best: Local Adaptive |
|
Summary Of Rankings |
||||||||||
|
11 Images |
2 |
Otsu |
Isodata |
K-Means |
Fuzzy |
Kapur |
Sahoo |
Sahoo |
Triangle |
Local |
|
Number Of |
5 |
5 |
5 |
5 |
4 |
1 |
0 |
4 |
1 |
3 |
|
Number Of |
1 |
2 |
2 |
2 |
4 |
2 |
3 |
0 |
2 |
1 |
|
Number Of |
6 |
7 |
7 |
7 |
8 |
3 |
3 |
4 |
3 |
4 |
(as if we already did not know that)