View Full Version : Blend-if In Photoshop roger_ele 03-07-2004, 11:59 PM This tutorial focuses just on the blend-if sliders in Photoshop. I put this in the "The Basic" category because my goal was to write this tutorial clearly enough for all experience levels (and there is not an advanced category). [details (http://www.retouchpro.com/tutorials/?m=show&id=123)] Wow -- there's a lot of content in a small space there!
It's good to get some more background detail on aspects of blend-if. I've used it and knew roughly how it worked, but there's a whole range of aspects I hadn't thought about.
Note to others - this is one of those tutorials that isn't likely to sink in just by reading it -- you'll need to dive in and have a play with the sample images yourself. Flora 03-08-2004, 08:56 AM Thank you Roger!!!
I had already 'played' with the 'Blend if' option sometimes ... but never knowing what I was really doing ....
It's something new to try .... and it looks very powerful!!!!
I agree with Leah:
this is one of those tutorials that isn't likely to sink in just by reading it -- you'll need to dive in and have a play with the sample images yourself.
:wavey: Hi Roger,
I had only a short time on the computer this morning, but I wanted you to know that I saw the tutorial, so I replied. Since I now have a little more time, I've deleted the first post, and replaced it with this one.
First of all, thank you very much for the kind words, but I am not deserving of all that. I never thought I did any *work* at RP. I just enjoy the site like many others. Now on to the tutorial. :)
Thank you very much for an inside look at how blend-if works. I printed the tutorial, and began to work with it in Photoshop. I only spent a few minutes with it so far, and it's still a little fuzzy to me (I'm a slow learner :( ). But I think you did a fantastic job with it, and I think it's the best I've seen to get someone started. By this time tomorrow, I'm pretty sure I'll understand it better. If I have a problem with it, I'll put you in the hot seat, and ask for assistance. :nod: I really appreciate your time to write up the tutorial. It's one I've been wanting for some time. Thanks again.
Ed I think I'm *beginning* to get it, but still having a problem visualizing masking an image with blend-if. Would it be too much to add an image, and show how it's masked? Please don't feel any pressure to do this, but if you want to kill a little time some day, that would be great. My brain is smoking. Think I'll turn in early. :tired:
Ed roger_ele 03-08-2004, 10:15 PM Hi Ed, Flora & Leah,
Thanks for your kind words. Ed, if it is or isn't 'work', your effort is appreciated.
I added some more info to the tutorial, hopefully it will make it a little easier to understand.
It really is necessary to download the test images, make a two layered image and play with the blend-if sliders to really get it - The fact that the test images have pure colors makes it a lot easier to understand. I thought I had 'got it' until I made the test image (I tried a couple of different variations on what you see) - only after playing with the test image did I figure the rest of it out.
Ed wrote: Would it be too much to add an image, and show how it's masked?
I don't mind - but I am not sure what would be learned that the test images don't show more clearly. Throw in a couple of images with what you want to do and then we can discus what we can (and more importantly can't) do with them with 'blend-if'. I think that might help 'reveal' any missconceptions that might be getting in the way of an understanding.
Thanks,
Roger I think part of the trouble with blend-if is that initially it's hard to think of a practical example of what you could do with it - which is where a "real" image would come in.
Scott Caplin has some good real-world examples in his book How to Cheat in Photoshop, if anyone has access to that. That's what made the little lightbulb come on inside my head... jrolinc 03-09-2004, 05:44 AM Hi
I was reading along with this and thought of a book I have, Photoshop6 WOW Book. I remembered a small example of the Blend If that I just couldn't believe, that is until I got the pic off the accompanying CD and try it myself.
It is pretty amazing...I've kind of copied it in the pics below, but please note that all rights, etc are to the great folks who put out the WOW series books.
At least this may help those out there to see the powerful potential of this tool.
Oh yeah...the info about what's happening might help...this was done in Photoshop 7 also.
In the 2nd step...Blend If, Gray, This Layer (1st Blend If screen shot), you can "split" the little triangles by holding the Alt key (PC).
In the 3rd step...Blend If, Blue, Underlying layer (2nd Blend If screen shot)
The last step is changing the Layer Blend mode to Screen and dropping the opacity.
Hope that helps as a "real" world example. :lmao: [QUOTE=Leah]I think part of the trouble with blend-if is that initially it's hard to think of a practical example of what you could do with it - which is where a "real" image would come in. QUOTE]
I think that's right. I'll take another look at the tutorial, and play around with the information jrolinc provided. Thanks everyone, for trying to help me understand.
Ed roger_ele 03-09-2004, 10:47 AM Jeffrey,
That is a wonderful example. Understanding blend-if is new enough to me that the examples are not tripping off of my tongue, Thanks.
Roger bhall07 03-09-2004, 03:31 PM Jeffrey,
That is a wonderful example. Understanding blend-if is new enough to me that the examples are not tripping off of my tongue, Thanks.
Roger
I used the blend if with A & B to get C. roger_ele 03-09-2004, 11:04 PM I wasn't clear, it is not that I can't find images that will show that bend-if works - the test shows that, and the images would also show it. It is that I don't have images that come to mind that show it as a perfect way to mask without needing to do additional stuff to them.
There is another factor to this that has been rumbling around in the back of my mind - The goal is to be able to think in 'blend-if', zen ''blend-if' if you will:
If I found perfect images then it would prove the power, but not how to think about images to know what to do. Yes, I know that if I have a great difference in colors or tones I can use blend-if to mask, but that doesn't teach me to use it except in real obvious ways. So,I have found two images that are close together in tones that I will add to the tutorial - not because they blend well, but because I think they might show what is happening - what to look for.
After adding this, when I next get a chance I will add an example with an image more suited to blend-if.
Roger sdubose99 03-09-2004, 11:33 PM Hi Roger -- thanks for the expanded tutorial on blend-if. FYI, Adobe has an exellent description of how to use blend-if on this page that helped me out quite a bit. It's a 2.8MB Quicktime movie so you might need a fast connection to view it... http://www.adobe.com/web/tips/totalphs3/main.html#
Scott roger_ele 03-10-2004, 12:25 AM Thanks for the link Scott.
Everyone, I have added the example images, let me know if you think I should use a different image or if this one works - and if there is anything else I should cover..
Thanks,
Roger I’ve worked with the images that I downloaded, but I had a little trouble understanding what was happening. This is not a shortcoming of the tutorial, but a lack of understanding on my part. So I made some test layers myself, to try to get a better grip on this. Here’s what I did, and what I learned (and didn’t learn).
Top layer is a gradient, black to white. Bottom layer is R35, B123, G128. Top layer is targeted. Working with the top layer, adjustment of any channel gives results according to the same numbers on the slider because the layer is neutral. Working with the bottom layer (gray channel), no results are seen until I drag the white slider to 99. I am having trouble understanding this. At first I thought this would be the average of the three numbers, but the average would be 95.3. Dragging the black slider requires the number to be 101 before any change is detected. This was expected because the white slider reading was 99. Using the red channel, I had to drag the white slider to 34 before a change was made. This was expected since the red component was R35. Blue channel results were that I needed B122 to see change. Also expected. Green channel came out at G127. Also easy enough to understand. Here’s what I learned: To force any color through the top layer, while using the bottom sliders, any reading of the RBG components can be used to force that (mixed) color through. I realize I’m just touching the basics, and I expect to have many more questions before I’m able to really make good use of blend-if. I’ll post my questions here, and possibly learn more about what seems to be a very flexible tool. Can anyone explain why I needed to drag the top slider to 99 before seeing results?
Roger, I think the new images you posted are great examples to work with. I’ve also worked some with the moon in back of the rock. I was able to duplicate the results, but not without questions, which I’ll try to figure out myself. If I can’t do that, I’ll be asking for help. Thanks again for a great tutorial. I’m not going to quit until I “get it”, or everyone gives up on me. :)
Ed dpnew 03-11-2004, 03:22 AM Hi Ed_L,
On my pc, 96 seemed to be the point where the right underlying layer slider caused the underlying color to force through. At 97, I could still see the gradient, but at 96 the image turned blue. So, if you round 95.3 up, that seems to be close.
Interestingly enough, it is not consistent with the left slider. When I moved the left slider to level 97, the color did not force through. It wasn't until I moved the left slider to 98 that the blue showed through.
To see why the number 96 or whatever you get is the number, create a Threshold adjustment layer for your blue color layer. You should see one vertical line--mine was between 97 and 98. Why the Threshold number, the right slider number, and the left slider number, and the average of 35, 125, and 128 aren't all exactly the same, I can't explain.
If you are interested in some applications for Blend If, you can use it to target ranges of tones in your image for any type of adjustment, e.g. Levels, Curves, Hue/Sat, etc., you can use it to blend different exposures for the same image, and you can use it to get rid of sharpening halos, as well as all kinds of special effects. Hi Ed_L,
On my pc, 96 seemed to be the point where the right underlying layer slider caused the underlying color to force through. At 97, I could still see the gradient, but at 96 the image turned blue. So, if you round 95.3 up, that seems to be close.
I have no idea what I did, but I checked again, and I came up with the same numbers as you.
[/QUOTE]
Interestingly enough, it is not consistent with the left slider. When I moved the left slider to level 97, the color did not force through. It wasn't until I moved the left slider to 98 that the blue showed through..[/QUOTE]
In everything I've done so far, I've always seen a difference of two between the left and right sliders. This leads me to believe the actual number is 97, and it must be surpassed in order to see results. Could be wrong, though.
[/QUOTE]
If you are interested in some applications for Blend If, you can use it to target ranges of tones in your image for any type of adjustment, e.g. Levels, Curves, Hue/Sat, etc., you can use it to blend different exposures for the same image, and you can use it to get rid of sharpening halos, as well as all kinds of special effects.[/QUOTE]
Yes, I'm interested in that, but I fear it's a long way away. :( Thanks for the post. If I'm having trouble understanding this, there must be others too.
Ed you can use it to blend different exposures for the same image, and you can use it to get rid of sharpening halos, as well as all kinds of special effects.
Goodness me... was that the sound of dpnew volunteering a tutorial on "using blend-if to get rid of sharpening halos"? Or one of the others ... we're not fussy!
Seriously, if you could at any point spare the time to do a more specialist tut on one of these applications of blend-if I think it would be a great help to members.
:bow: (that's the closest I could get to a grovelly pleading sort of smiley) Absolutely! But if someone makes up a tutorial, could you please explain what's going on in your head as you make adjustments? For example: "I want to bring the dark blue chair from the underlying layer through the roof of the house. Since the chair is dark blue, I'll ........................" . OK, that doesn't pertain to the halos, but you get what I mean. The reason and the thought for making adjustments should go a long way toward helping someone (like me :) ) to better understand.
For those of you who are used to using blend-if, do you use the eyedropper to find the numbers, or do you just eyeball the image? I'm not very good with color, so is it a waste of time to monitor the numbers?
Ed sPECtre 03-12-2004, 02:51 PM The tutorial to get rid of shapening halos using the blend if sliders can be seen at : http://www.adobeforums.com/cgi-bin/webx?50@187.fTIubT8yaa4.2@.2ccf89ab (free registration required -no spam -official Adobe Website) That looks easy enough. Thanks for the link.
Ed (Seems like I only do posts with numbers...) :o:
First thanks to Ed_L for proposing the question....
As dpnew pointed out the ´magic´ number is 97. The blend-if takes effect when the slider passes the number. So for the white slider it´s between 97 and 96, and for the black between 97 and 98.
At first I thought this would be the average of the three numbers, but the average would be 95.3.
The problem is that the choice of numbers 35 / 123 / 128 gives a ´magic´ number very close to the average. If you turn them around, 128 / 123 / 35, you´ll get a number of 115. In fact, if you try pure red, green and blue you get 76 / 150 / 28 - which, sort of, explains it.
The ´magic´number is the ´perceived´ gray and not the average gray. It´s all because of the way the eye works - we see more green things brighter than blue things.
If you really want to calculate the number try:
Red * 76 / 255 + Green * 150 / 255 + Blue * 28 / 255 - it works.
And what´s the purpose of blend-if ?
I understand it as yet another way to make a layer mask. This time using precise pixel values. I´ve used it sometimes to mask of areas where a channel has clipped to be able to mix in a patch made of the other two.
Just thought of another use... going to try it out.... ralphjramirez 06-28-2007, 10:21 AM This tutorial focuses just on the blend-if sliders in Photoshop. I put this in the "The Basic" category because my goal was to write this tutorial clearly enough for all experience levels (and there is not an advanced category). [details (http://www.retouchpro.com/tutorials/?m=show&id=123)]
How do I go about downloading the test image for working with the sliders? I couldn't find a link. Thanks.....Ralph Graphics23 06-29-2007, 08:36 PM I'm quite late to this discussion, but since it got bumped I thought I'd offer some examples:
The first attachment is a shot for a realtor's website. But they don't like the lawn.
We need to fix the lawn and the dirt and we need to do it fast.
Everything in nature that's green actually has a lot of yellow in it. Referring to my "Power of Ten (http://www.retouchpro.com/forums/rp-tutorials/17664-photoshop-channel-concepts-power-ten.html)" tutorial, we know that the opponent of yellow is blue.
Using the info palette, we can see that all the green areas and dirt patches, being more yellow, have less blue than everything else in the picture. The sky of course is quite blue, the house and street are neutral.
With this in mind, I used the Eyedropper to sample a nice shade of green from the trees on the right. Then I created a solid color fill layer and set it's blend mode to Hue. Then I opened up the Blending Options window and used Blend If to allow everything from the bottom layer that's more blue (less yellow) than the top layer to show through.
I've included a screen grab of the Blend If as well as my finished version.
No cloning, no masking. Job done and the Realtor is happy! :)
Less than a minute's work. It took longer to explain than to do.
Regards,
Michael Graphics23 06-29-2007, 08:56 PM Here's another example
We want to change the car from yellow to blue without affecting the flames.
Switch to LAB color mode.
Create a curves adjustment layer.
In the curves dialog, go to the B channel.
Drag the endpoints to the opposite corners; left one to the top, right one to the bottom. Hit "OK".
Now double-click to the left of the adjustment layer's name to open the Blending Options dialog.
At the bottom of the window is a pop-up menu called Blend If, select the A channel.
Drag the bottom right-hand sliders to the left until you get to the middle. The number above it should now read 127.
Now Alt drag that same slider to the right. This will split the slider creating a transition zone. Move it to the right until the new number reads 194. Hit "OK".
Instant paint job! Again, no masking. But notice how nicely the blue blends into the flames. No hint of yellow remains.
This would be very difficult to reproduce by masking the flames.
Regards,
Michael des151 06-29-2007, 09:05 PM Thanks Michael. That was very informative.
Ray | |