-
Notifications
You must be signed in to change notification settings - Fork 2
feature image gray_v0.1
The feature-image-gray is devoted to RGB image grayscale conversion. The greyscale image is created using weighted linear combination of the three chromatic layers of the RGB image.
The feature-image-gray software expects the following arguments and parameters. Starting with the stream arguments and parameters :
--input -i
Path of the input RGB image.
--output -o
Path of the output grayscale image.
Linear combination arguments and parameters :
--red -r, --green -g, --blue -b
Weights of the chromatic layer. The sum of the three values
should be one.
If the weights are not in [0,1] with sum equal to one, capacity overflow are handled by OpenCV.
Considering the following image taken at Geneva using an Eyesis4Pi camera :
and considering the usual luminance weights for the layers combination, the following result is obtained :
Considering zero as red and green weights and one for the blue layer, the result is given by :
Setting to zero the weights of the red and blue channels gives the following image :
The linear combination weights can have any value. This allow to go a bit further than simple grayscale conversion when the process is well understood.
The software binary can be build using its specific makefile by simply typing in its base directory :
$ make clean && make
The binary is placed in the local bin directory and is not copied in the feature-suite main bin directory. To generate the documentation, use the command :
$ make documentation
When documentation is generated, the previous one is preliminary removed.
Documentation under CC BY-SA license (c) 2013-2014 FOXEL SA
[Home](home)
Section : image transformation
Section : image keypoints
Section : image matches
Section : file operations
Section : file standards
- [Feature file standard](Feature file standard_v0.2)
Development : logs