Skip to content

Update seamless_cloning.cpp - #15929

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

opencv-pushbot merged 1 commit into
opencv:3.4from
sturkmen72:patch-3

Conversation

@sturkmen72

@sturkmen72 sturkmen72 commented Nov 17, 2019 •

Copy link
Copy Markdown
Contributor

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);

@alalek alalek Nov 18, 2019 •

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.

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

alalek commented Jan 17, 2020

Copy link
Copy Markdown
Member

@asmorkalov Please check issue's comments: #15928

@sturkmen72

Copy link
Copy Markdown
Contributor Author

i reverted commits related with #15928

@alalek alalek left a comment

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.

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
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
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