Jump to content
You must now use your email address to sign in [click for more info] ×

Recommended Posts

I'd like to mask / select a foreground object by blending a photo of the scene without the object and one with the object present. It seemed intuitively clear that some sort of blend mode like difference would do this, but difference doesn't give priority to the foreground object so you get a cocktail of the foreground object and what's behind it.

Any bright ideas chaps?

 

d.

Link to comment
Share on other sites

Would it be possible for you to attach the images involved?
Finding the best method for doing something is usually dependent on the specifics and the original images would be very useful.
If you don’t want to share the images themselves, is there an example of what you want the final result to look like?
Also, can you be a little bit more specific about what you mean by “blend” as that’s a fairly loose description which can be easily misinterpreted.
The more clear and specific information you give the better we can help.

Link to comment
Share on other sites

Apols if it wasn't clear. See the attached example. I want to cut out the walking couple by subtracting the buildings by some method. There will be hundreds to do so I'm looking for a straightforward method although some manual retouching will be needed.

1.jpg

2.jpg

Link to comment
Share on other sites

2 hours ago, David Edge said:

I'd like to mask / select a foreground object by blending a photo of the scene without the object and one with the object present.

Still unclear exactly what you want to do, but you may be looking for

File > New Stack

You generally need more than 2 images though.

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

Well the version with nobody in it was produced by median stacking lots of images. So I now wish to subtract the background and just have the couple. Lots of alpha, two little people.

(FWIW the building background will be replaced by a cyanotype and the people superimposed on clear acetate.)

Link to comment
Share on other sites

To select the people spend 30 mins drawing around the people with the pen tool to get a nice selection,  make sure you fill the curve you create and use the selection from layer option from the Select menu, you can refine the selection after that, maybe a small amount of feather but if you make a neat job that shouldn't be necessary.

Did this in 6 mins flat, (Yes I timed myself lol!) this is a rough rip and I'd normally spend more time zoomed in to get some sweet, sweet lines but it shows what can be done using the pen tool, the beauty is you can go back to the curve and keep tweaking it until you are happy.

851057459_ScreenShot2020-02-09at22_06_32.png.dad2d4ee331edf303dfa5501d765fef5.png

 

Closeup and personal.
1030639356_ScreenShot2020-02-09at22_11_24.png.7e7a0e0987d1e5515c50376903f04d62.png

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

I'm feeling merciful tonight 😉

Street shot cropped people.afphoto Saved with history.

I also added a very small amount of gaussian blur to the edge of the people by cmd clicking on the people layer to get a selection, shrinking the selection by .5px and then adding .5px gaussian blur. using the live filter.

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

The Gaussian blur's a good tip thanks. Vector outlines may not be the answer in the context of the project which involves a kilometre of high street and multiple remixes of each building tho'. 

Is anybody aware of a computational approach? Even using non-Serif software, shudder.

 

d.

Link to comment
Share on other sites

OK, I found this in a forum related to "the other lot"

The term you are looking for is a "difference mask".

Basically you align the two layers, set one to difference, and use the result to create a mask (you will have to tweak contrast, add some blur, etc.).

However, it is a very bad method for masking. You will get quite crap/inaccurate results from doing it I'm afraid (image noise, shadows/etc. from the object, some pixels on the object being too similar to pixels in the original background, etc). Could be sufficient for just a garbage matte or just locating differences.

This type of masking you typically only see in webcam applications where it tries to remove the background in realtime (quality not important, and works with any background as long as it's different enough from the object).

I was thinking "difference" and missing the "mask" bit. So that would do what I was imagining, but in the view of the poster, not very well. And of course it will work in Affinity too.
Link to comment
Share on other sites

Computationally it would have to be the reverse wouldn't it, i.e. the building moving but the people static.
 

The vector outline is only to get a snug fit selection that selections tools might find hard to get, having said that it would be tedious considering the amount of images that need to be edited because I'm assuming the people are in a different position in each "frame" in which case video editing software like AfterEffects or BlackMagics Fusion might be a better option for motion matting if the image sequence is more like a flip book. 

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

Try www.remove.bg

It's super fast and does a reasonable job

You can use it for free (limitations) or sign up for a free trial to test one of your full sized images

 

 

scenesmall-removebg-preview.png

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

Yes, I agree that vector plus blur is quicker than messing about with selections when there's little contrast between object and background. You can come and see the final result from 6 March at The Small Print Company in Derby.

Re Carl's suggestion, I'll give it a go although I note in the sample image the young lady is standing in front of a brick wall, my backgrounds are a bit more challenging.

Thanks both

 

d.

Link to comment
Share on other sites

4 hours ago, David Edge said:

Yes, I agree that vector plus blur is quicker than messing about with selections when there's little contrast between object and background. You can come and see the final result from 6 March at The Small Print Company in Derby.

Re Carl's suggestion, I'll give it a go although I note in the sample image the young lady is standing in front of a brick wall, my backgrounds are a bit more challenging.

Thanks both

 

d.

Awesome that's just down the road from me, cool.

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.