You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use your library created in code
` Mat &ori_image = *((Mat *) origin_address);
Mat &target_mat = *((Mat *) target_address);
Mat &source_mat = *((Mat *) source_address);
Mat &result_mat = *((Mat *) result_address);
but the image of the result and the original is the same, the targetMat is a white image on a black background, and so is the originMat but in a different location, I wonder if there is any need to edit or add anything to your code I don't let it work
The text was updated successfully, but these errors were encountered:
Quangninh-io
changed the title
there is no difference between the original image and the edited image
There is no difference between the original image and the edited image
Jul 19, 2023
I believe you need to need to iterate through any pending steps before getting the result. Something like this:
while (inpainter.hasMoreSteps()) {
inpainter.step();
}
If you're not planning on doing any special processing, you could alternatively use the Inpaint::inpaintCriminisi static function which handles all of this.
I try to use your library created in code
` Mat &ori_image = *((Mat *) origin_address);
Mat &target_mat = *((Mat *) target_address);
Mat &source_mat = *((Mat *) source_address);
Mat &result_mat = *((Mat *) result_address);
but the image of the result and the original is the same, the targetMat is a white image on a black background, and so is the originMat but in a different location, I wonder if there is any need to edit or add anything to your code I don't let it work
The text was updated successfully, but these errors were encountered: