@@ -5,35 +5,69 @@ This library collects various image processing algorithms and provides a simple
55#### Original image
66![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/examples/Basics/data/example.jpg?raw=true )
77
8+ _ Photo is taken by me [ more here] ( https://www.instagram.com/milchreisjunkie/ ) _
9+
810#### Grayscale image
911![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/img/gray.png?raw=true )
12+ ```
13+ PImage processedImage = Grayscale.apply(image);
14+ ```
1015
1116#### Threshold image
1217![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/img/threshold.png?raw=true )
18+ ```
19+ PImage processedImage = Threshold.apply(image); // Auto threshold
20+ PImage processedImage = Threshold.apply(image, value); // Threshold value between 0 and 255
21+ ```
1322
1423#### Dilation image
1524![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/img/dilation.png?raw=true )
25+ ```
26+ PImage processedImage = Dilation.apply(image, radius); // radius is a positive number
27+ ```
1628
1729#### Erosion image
1830![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/img/erosion.png?raw=true )
31+ ```
32+ PImage processedImage = Erosion.apply(image, radius); // radius is a positive number
33+ ```
1934
2035#### AutoBalance image
2136![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/img/autobalance.png?raw=true )
37+ ```
38+ PImage processedImage = AutoBalance.apply(image);
39+ ```
2240
2341#### Gaussian blur image
2442![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/img/gaussian.png?raw=true )
43+ ```
44+ PImage processedImage = Gaussian.apply(image, 7, 0.84089642); // kernel size and sigma
45+ ```
2546
2647#### Edge detection image
2748![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/img/canny.png?raw=true )
49+ ```
50+ PImage processedImage = CannyEdgeDetector.apply(image);
51+ ```
2852
2953#### Bloom image
3054![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/img/bloom.png?raw=true )
55+ ```
56+ PImage processedImage = Bloom.apply(image, intensity); // intensity between 0 and 255
57+ ```
3158
3259#### Sharpen image
3360![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/img/sharpen.png?raw=true )
61+ ```
62+ PImage processedImage = Sharpen.apply(image, sharpIntensity); // sharpIntensity between 0.0 and 10.0
63+ ```
3464
3565#### Lookup table image
3666![ alt text] ( https://github.com/Milchreis/processing-imageprocessing/blob/master/img/lut.png?raw=true )
67+ ```
68+ LUT style = LUT.loadLut(LUT.STYLE.CONTRAST);
69+ PImage processedImage = LUT.apply(image, style);
70+ ```
3771
3872# Special thanks
3973My special thanks goes to [ avatarr] ( https://github.com/avatarr/java-image-processing-algorithm ) for implementing and publishing basic algorithms. Also thank you very much Tom Gibara for your great blog post and the implementation of the [ canny edge detector] ( http://www.tomgibara.com/computer-vision/canny-edge-detector ) .
0 commit comments