2016-11-27 17:47:32 -0600 | received badge | ● Enthusiast |
2016-11-26 00:44:19 -0600 | asked a question | How to use the functions of convertTo, applyColorMap,imshow to get the result I want? Here is the code in Matlab and the result picture I get using Matlab. For some purposes, I need to convert Matlab code into C++. I have done the conversion of data structure in c++, and then I need to deal with the part of showing picture. I decide to use Opencv library to replace the image procesing in Matlab. I have found that some functions like convertTo, applyColorMap and imshow in Opencv can replace the function imagesc in Matlab. So, I imitate the code online I searched. But it doesn't work.Maybe there are some grammer mistakes in my questions, sorry about that. Here is my code in C++ Here is the code dealing with images in Matlab. The result picture running on Matlab which is I want to get using Opencv functions. And my result picture in C++ is the following picture which is the wrong picture absolutely. I am a new learner for opencv, but time is limited. Could any one help me to solve this problem? |
2016-11-25 00:21:48 -0600 | received badge | ● Scholar (source) |
2016-11-25 00:21:33 -0600 | received badge | ● Editor (source) |
2016-11-12 20:06:02 -0600 | commented answer | which functions should I use to convert matlab into opencv code? Thank you for your answer. I also want to know which function could replace the function of imagesc. This function is important for conversion. And my parameter of imagesc is a [1933x362 double] matrix. |
2016-11-12 08:19:04 -0600 | asked a question | which functions should I use to convert matlab into opencv code? Hi, I need to convert matlab code into c++ code. I decide to use opencv to deal with the functionality of imagine processing. In my matlab code, I use the functions below to draw images. Could anyone tell me which functions in opencv I should learn or use? thank you. The first picture is what I get in Matlab, and I want get the similar result using opencv. All the data structures have been done. And the second picture is the code of using opencv to replace function imagesc, but I couldn't get result. I am a new learner to opencv, Could anyone help me solve this problem? Thank you. |