New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgba to bgr conversion giving distorted image #361
Comments
At a glance, I think you need to have
|
Thanks that worked for me |
even faster is replacing the memcpy with
|
@Source82 Thanks for the code. Even though I used the above code, on a continous video stream, I sometimes get good images and sometimes get distorted images. Do you know, what could be the problem? |
What is the distortion like? can you let me see the code? |
|
Am quite busy now, but I will try and run your code to see if I can re-create the error. By the way, I can see you are using imshow without waitkey, you are not giving highgui time to process the draw requests from cv::imshow(). |
I am having similar issue converting from imgRGBA to opencv mat. Whould have thought there should be a standard function for this because it something a lot of people would want to do for further processing the detectNET camera example. Please need help. |
Solved the problem.
|
In an attempt to convert to bgr for further processing with opencv I wrote this code
Unfortunetly only the top part of the image is visible the rest appears black. Help please what am I doing wrong.
The text was updated successfully, but these errors were encountered: