Improve the package image fusion library.#6
Conversation
RichardTamarisk
commented
Nov 28, 2024
- Remove unnecessary comments in task.hpp and stitcher.cpp.
- Update main(): The video frames decoded by ffmpeg are spliced.
* Update main(): The video frames decoded by ffmpeg are spliced.
* update CMakeLists.txt.
|
In this change, I add the image stitching wrapped function implementation stitcher.cpp, and successfully compiled the project, but the nothing in the SDL window after running the project.
I was hoping you could take a look at this. |
I reviewed your code and have the following suggestions: Please set is_corrected to false in the ImageFusion function, as the correct function is not robust enough. It doesn't handle some edge cases well, which leads to errors. The error log like this [swscaler @ 0x1381f8000] No accelerated colorspace conversion found from yuv420p to bgr24.
[swscaler @ 0x1381f8000] bad src image pointers
sws_scale failed.
One or both input images are empty. |
|
what i want to tell you is the demo is not represent anything, you just pass simple scenario. the code can't handle any situation. if you don't understand this, the project will be no useful. |
I'll solve this problem as soon as possible. |
|
what i modified is just disable the correct_image. Just like what i commented
|
|
if you set is_corrected to false, you'll see what problem i encountered. |
Yes, in image fusion processing, I need to convert to BGR24 to process the tree color channels. |
|
I improved the avframeToCvmat function for submission this time, and the converted cv::Mat format images can be splintered normally, but the AVFrame format images converted by cvmatToAvframe function are splintered. Could you please help me find out what is wrong. |




