2013-08-26 20:08:15 -0600 | answered a question | building photoshop-style black-white-conversion The conventional way to transfer a RGB image to gray is Gray = 0.299R + 0.587G + 0.114*B, which has 3 coefficients to control the final result. However, I tried the 'black-and-white' filter in Ps and found out it has 6 separate controls. I set red and green channel to 0 but the gray result of yellow, the combination of red and green, remained the same. Therefore I infer this filter is not working in RGB channels. It should be working in HSV, where you can adjust the luminance of one color without affecting the others. |
2013-08-25 20:04:29 -0600 | answered a question | Install the lastest OpenCv You can set the path in IDE. Read the section 'The local method' in this article. |
2013-08-10 11:57:20 -0600 | commented answer | imshow reports runtime error after rebuilding opencv project with 'WITH_OPENGL' is on Thank you! Problem solved! |
2013-08-10 01:57:31 -0600 | received badge | ● Editor (source) |
2013-08-10 01:55:13 -0600 | asked a question | imshow reports runtime error after rebuilding opencv project with 'WITH_OPENGL' is on I turned on WITH_OPENGL using CMake, and rebuild the project. imshow() reports runtime error. How can I fix this problem?? int main(int argc, const char * argv[]) { cv::Mat I = cv::imread("D:/PyramidPattern.jpg"); cv::imshow("test",I); return 0; } runtime error: OpenCV Error: OpenGL API call (Can't load OpenGL extension [glGenerateMipmap]) i n unknown function, file C:\OpenCV\modules\core\src\gl_core_3_1.cpp, line 141 |