Mask confusion

Moderator: jsachs

tonygamble
Posts: 209
Joined: April 26th, 2009, 7:00 am

Re: Mask confusion

Post by tonygamble »

I have got where I want with that mask - thanks.

It masks the body and leaves the background available.

I want to apply some blur with more at the top and less at the bottom (bokeh hunting)

I have a second mask that is gradient - so I can get more blur at the top.

I have set the mask box to show Mask 1 + Mask 2.

How do I merge/combine these two masks into one so I can apply my blur?

I have got this far.

Image
pierrelabreche
Posts: 647
Joined: January 29th, 2019, 11:47 pm
What is the make/model of your primary camera?: Nikon Z8

Re: Mask confusion

Post by pierrelabreche »

Select output of the Masks transformation as Mask1 & Mask2.

Then use this mask later in the blur transformation

You may use a splitter or a copy transformation to specify the input image for the blur transformation.
tonygamble
Posts: 209
Joined: April 26th, 2009, 7:00 am

Re: Mask confusion

Post by tonygamble »

Thanks Pierre,

How do I get my original image back into the string so I can use my blur transform and new mask?

EDIT. I got it. I need Copy and that gives me a new start point.

Thanks again.
jsachs
Posts: 4620
Joined: January 22nd, 2009, 11:03 pm

Re: Mask confusion

Post by jsachs »

There was no error, when you select the Range tool it immediately applies its previous setting, if any, but the sliders are still active so you can go ahead and select a different range if you want. This is consistent with how other tools such as the Blur tool work -- when you select the Blur tool, it immediately blurs the mask, but you can change the setting by adjusting the slider. If you want to quickly reset the Range tool you can use the Contract button.
Jonathan Sachs
Digital Light & Color
tonygamble
Posts: 209
Joined: April 26th, 2009, 7:00 am

Re: Mask confusion

Post by tonygamble »

I used Pierre's suggestion of Copy to get me a new start point for when I wanted to combine two masks.

He mentioned a split. I have done one. Can someone tell me how I now create the Mask1 & Mask 2 please.

Image
jsachs
Posts: 4620
Joined: January 22nd, 2009, 11:03 pm

Re: Mask confusion

Post by jsachs »

There was no error, the program just did not behave the way you expected.

When you select the Range tool, the previous settings, if any, are restored and the tool is applied. If you don't want the previous settings you can just move the sliders or press the Contract button to reduce the range to a single color and the shift drag over the input image to expand the range from there. This is consistent with the way, for example, the Blur tool works -- you select the tool and it immediately blurs, but you can move the slider to vary the result.
Jonathan Sachs
Digital Light & Color
tonygamble
Posts: 209
Joined: April 26th, 2009, 7:00 am

Re: Mask confusion

Post by tonygamble »

Thanks Jonathan,

You repeated your earlier reply.

Could either you or Pierre tell me how to get a Mask1 & Mask 2 combination when I have used the Branch method Pierre suggested.
jsachs
Posts: 4620
Joined: January 22nd, 2009, 11:03 pm

Re: Mask confusion

Post by jsachs »

Sorry for the double reply -- did not notice the discussion spilled over onto a second page.

I think what he was suggesting is that you start with the image you want to process, then add a splitter after it. In one branch you use Masks and set its output to the combined mask1 + mask2 as discussed earlier by creating the 2 masks as mask 1 and mask 2 within a single Masks transformation and then use its Settings menu to set the output image to mask 1 + mask 2.

Then, in the other branch you reference the combined mask in whatever transformation you want to use it with (by selecting it from the Amount mask dropdown menu. The Copy method also works fine, but the splitter keeps everything on a single branch so it is more obvious what each transformation depends on.

I am not sure if what you are trying to create is a mask that is white where either mask 1 or mask 2 is white or where both mask 1 and mask 2 are white. Looking at your example, the easy way to do this is to create mask 1 and (without closing the Mask dialog box) then select the linear gradient mask tool and create mask 2 (the gradient mask) with the mode set to Add or Overlap depending on whether you want mask 1 or mask 2 vs mask 1 and mask2. From the example it looks like you want the latter. Using this method you don't need a splitter or a Copy as you can do everything within a single mask.
Jonathan Sachs
Digital Light & Color
tonygamble
Posts: 209
Joined: April 26th, 2009, 7:00 am

Re: Mask confusion

Post by tonygamble »

Worked it out. I use one branch to produce the third mask and use the other branch to call it up in a transformation.

Image
jsachs
Posts: 4620
Joined: January 22nd, 2009, 11:03 pm

Re: Mask confusion

Post by jsachs »

I did track down the problem with Save Current Mask messing up the current mask. I have fixed it for the next release.
Jonathan Sachs
Digital Light & Color
Post Reply