I’m currently trying to use OpenCV inside a project and having issues around creating a cv::Mat
#if WITH_OPENCV
// IWYU pragma: begin_keep
#include "PreOpenCVHeaders.h"
#include "opencv2/unreal.hpp"
#include "opencv2/opencv.hpp"
#include "opencv2/core.hpp"
#include "opencv2/ml.hpp"
#include "opencv2/imgproc.hpp"
#include "PostOpenCVHeaders.h"
// IWYU pragma: end_keep
#endif
// Create a destination matrix for the blurred image
cv::Mat dst;
// Convert the pixel buffer to a cv::Mat
cv::Mat src = cv::Mat(cv::Size(TextureDimensionY, TextureDimensionX), CV_8UC4, PixelData.data());
initially i thought the PixelData was incorrect but it seems that I can even create an empty Mat.
I am not familiar with OpenCV but feel I feel like I am close and has to be the way unreal handles memory allocations and possibly causing conflicts with OpenCV as the error is around disassembly code.
Unfortunately I am at a lost as what to do here, if someone who has encountered this or knows to help would be appreciated!