Problem with "blend if..."
Jack'll do
Registered Users Posts: 2,977 Major grins
Took the following image on a grey overcast day and wanted a blue sky background. I placed a sky image behind it and used "blend if" to accomplish a better background. All around the image there are very light pixels from the earlier gray sky (this can be seen better in the second image which is a screen capture of the first at 300%). I fiddled with the sliders a lot in the blend if dialog but could do no better than this. What am I doing wrong or is there no alternative but to go in and clone them out pixel by pixel?
0
Comments
We would need to see what the original image looked like (in a fairly large size) to offer you suggestions for how to better accomplish this. Techniques and settings for sky replacement are very dependent upon the particular image and what colors and tones it has at the sky boundary.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Here is the original RAW image converted to jpg and 72ppi with no PP. Does this help?
Jack
(My real name is John but Jack'll do)
Not trivial at all Nik. I should have mentioned that I did use split sliders.
Jack
(My real name is John but Jack'll do)
I've tried it at home. I believe the problem lies with the combination of the aliasing and CA, especially noticeable at lower res. The halos you're getting have the same nature as the ones you get from a heavy hand sharpening.
My suggestion:
1) start from RAW, go 16 bit (or even 32 bit)
2) in RAW (or in PS) perform a major defringing and anti-aliasing action
3) do the blendif again
4) You may need to perform some borderline painting/cloning with non-trivial (lighter or darker) blending mode to fine tune the edge.
HTH
I did the defringing in ACR. Then opened the 16 bit image in CS3 but cannot find any antialiasing action. My actions panel only contains the default folder and I don't see any mention of antialiasing. Am I missing something?
P.S. I did a google search and from what I can see, I must select the part of the image I want to apply antialiasing to. Is that what you mean?
Jack
(My real name is John but Jack'll do)
OK, did you do all these things (16-bit, defringing) before, too? If not - what you you try just that and see how it goes?
Yes I always shoot in RAW and make initial adjustments in ACR then open the 16 bit file in CS3. I did not defringe the first time. I will try the blend on the defringed image tomorrow (getting late and we're expecting a big snow in the morning. gotta get some sleep). I'll post the result when done.
P.S. check my P.S. in my previous post.
Jack
(My real name is John but Jack'll do)
I can't explain why Blend-If isn't doing the trick.
I tried a different approach and got better results:
I used a mask to blend in the (here completely blue) sky.
Since the sky in the original shot is blown-out, the Lightness channel in LAB is a good start. I applied a couple of extreme curves to drive everything to black and white, and then used to dodge and burn tools to refine it. I did some crude painting of black into the interior of the building in the Lightness channel).
The hardest part was the yellow spire on the right side, which got washed out in the above. Since this is yellow, the B channel in LAB helped out. I filled it with 50% grey, lighten mode, and then did an auto-levels on it, then blended it into the Lightness channel in darken mode.
The resulting Lightness channel is a reasonable mask, with a little problem on the edges. I turned it into a selection expanded it by 1 px, and then turned it back into a mask.
This mask on a layer of blue (or a sky) is what you see here.
The whole thing took less time than to describe it, with no really detailed moves. All of this in 8-bit, by the way.
If this is unclear, I can expand.
The nice thing about masks is that you can modify them in a lot of ways. You can fine tune parts of them, you can do subtle global adjustments (like expanding or contracting them by a small amount, blurring them, etc.). Blend-If is quite crude in comparison. Sometimes that's OK, and sometimes it's not.
I too have always used masks in the past. But if "blend if" works it simply is much faster for me. I had not considered working in different channels tho so I will keep your post in mind for the future. (I'll be probably be contacting you for help tho )
I'd really like to see your final image using your method.
Jack
(My real name is John but Jack'll do)
First thanks for pointing me in the right direction here. The defringing helped reduce the jaggies but when "blend if" applied was still not acceptable. There was now a darker blue area around the interface of the two layers plus a narrower whitish edge. I ended up having to clone that out by tracing the entire edge of the interface. Here's what I finally ended up with. (I started with the original RAW file but did not do any perspective correction as I had with the one I first posted... you may notice that difference. In the original attempt, any sharpening with smart sharpen or even hpf made the problem worse. In the final image I was able to sharpen a bit and use a light hpf without that problem. I have spent way too many hours on this. I'll think twice before doing it again.
Jack
(My real name is John but Jack'll do)
Happy New Year to you, too!
Here it is, with a layer with uniform blue for the "sky".
Thanks John
That worked out very nice.
Jack
(My real name is John but Jack'll do)
I did this in PS CS3. I've seen posts from pathfinder and probably others about the smart selection tool in PS CS4. I'm curious whether this would have worked here.
My real answer is here
Moderator of the Technique Forum and Finishing School on Dgrin
Thanks. I didn't realize Quick Select was in PS3 - thought it was new with PS4.
By painting inside and outside the box I can isolate my selection pretty quickly. Refine the edge, and I am done.
Moderator of the Technique Forum and Finishing School on Dgrin