Add conventional Bayer naming#20970
Conversation
| COLOR_BayerBG2BGR = 46, | ||
| COLOR_BayerGB2BGR = 47, | ||
| COLOR_BayerRG2BGR = 48, | ||
| COLOR_BayerGR2BGR = 49, |
There was a problem hiding this comment.
Could you please to keep these original defines "as is" (to ensure that we don't change anything) and add new defines through them below:
COLOR_BayerRGGB2BGR = COLOR_BayerBG2BGR, etc
BTW, It is OK to define RGB/BGR enums correspondence through 4 symbols code on the both sides:
COLOR_BayerRGGB2RGB = COLOR_BayerBGGR2BGR
| respectively. For example, the above pattern has a very popular "BG" type. | ||
|
|
||
| @see cv::COLOR_BayerBG2BGR, cv::COLOR_BayerGB2BGR, cv::COLOR_BayerRG2BGR, cv::COLOR_BayerGR2BGR, cv::COLOR_BayerBG2RGB, cv::COLOR_BayerGB2RGB, cv::COLOR_BayerRG2RGB, cv::COLOR_BayerGR2RGB | ||
| @see cv::COLOR_BayerRGGB2BGR, cv::COLOR_BayerGRBG2BGR, cv::COLOR_BayerBGGR2BGR, cv::COLOR_BayerGBRG2BGR, cv::COLOR_BayerRGGB2RGB, cv::COLOR_BayerGRBG2RGB, cv::COLOR_BayerBGGR2RGB, cv::COLOR_BayerGBRG2RGB |
There was a problem hiding this comment.
Documentation describes "The two letters ... components from the second row, second and third columns" OpenCV encoding few lines above.
So it makes sense to keep old OpenCV encoding here.
We can add link on the issue: https://github.com/opencv/opencv/issues/19629 and new encoding below.
88447a6 to
1cc966b
Compare
|
@alalek What about Is it GBRG pattern? |
|
This patch should go into 3.4 branch first. Please:
Note: no needs to re-open PR, apply changes "inplace". |
1cc966b to
30d6766
Compare
fix #19629
fix #18619
fix #4857
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.