Skip to content

Update seamless_cloning.cpp#15929

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
sturkmen72:patch-3
Jan 19, 2020
Merged

Update seamless_cloning.cpp#15929
opencv-pushbot merged 1 commit intoopencv:3.4from
sturkmen72:patch-3

Conversation

@sturkmen72
Copy link
Copy Markdown
Contributor

@sturkmen72 sturkmen72 commented Nov 17, 2019

This pullrequest changes

resolves #15927

if (p.y < 0)
p.y = dest.rows / 2;

Rect roi_d(p.x - roi_s.width / 2, p.y - roi_s.height / 2, roi_s.width, roi_s.height);
Copy link
Copy Markdown
Member

@alalek alalek Nov 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to ensure somehow that Rect args are still valid.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can I pull sturkmen72's code in order to work on this?

@asmorkalov
Copy link
Copy Markdown
Contributor

@alalek Do you have any remarks to the patch or I can squash and merge it?

@alalek
Copy link
Copy Markdown
Member

alalek commented Jan 17, 2020

@asmorkalov Please check issue's comments: #15928

@sturkmen72
Copy link
Copy Markdown
Contributor Author

i reverted commits related with #15928

Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

if (mask.channels() == 3)
cvtColor(mask, gray, COLOR_BGR2GRAY);
if (mask.channels() > 1)
cvtColor(mask, gray, COLOR_BGRA2GRAY);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COLOR_BGR2GRAY

Should work with both BGR/BGRA input too.

@opencv-pushbot opencv-pushbot merged commit eff514f into opencv:3.4 Jan 19, 2020
@sturkmen72 sturkmen72 deleted the patch-3 branch January 19, 2020 16:50
This was referenced Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants