Skip to main content
Azzam Masood
Participating Frequently
June 29, 2022
Question

Help understanding Refine Edge using Select and Mask

  • June 29, 2022
  • 2 replies
  • 719 views

So, below is before and after refinement using Color Aware/Object Aware (Do not know which one it is, since I'm backtracking through scriptlistener). Radius of 4 px is selected in Edge Detection, and Smart Radius, Decontamination are off.

 

I need to understand what exactly happened. I do not understand edge refinement at all, or how my left pixelized binary image turned into the non-binary image on the right. Help, please?

This topic has been closed for replies.

2 replies

Trevor.Dennis
Community Expert
Community Expert
June 29, 2022

Can you show us what you are trying to select?

And explain in more detail what we are looking at in your screen shots above?

I have no more idea than mj what is going on here.

Azzam Masood
Participating Frequently
June 29, 2022

The image on the left is a mask. The white pixels represent the pixels where my original color will later be present. However, the binary mask on the left has to be converted into the grayscale mask on right.

D Fosse
Community Expert
Community Expert
June 30, 2022

The principles are pretty simple, but more easily illustrated than explained.

 

This starts with a binary mask, either black or white.

 

The refine edge brush, when painted over the mask edges, maps the mask values according to the main pixel image values, giving a much more natural-looking mask. This requires a clear tonal contrast in the original image.

 

The others are pretty self-explaining:

 

 

Finally, you can output to a new selection, or to a layer mask.

@mj
Community Expert
Community Expert
June 29, 2022

Hi @Azzam Masood ,

 

Your original image (left) looks like a 1-bit image.

 

Can you help us understand what your trying to do?

 

Are you trying to select all the black pixels for example?

 

Best

mj

Azzam Masood
Participating Frequently
June 29, 2022

Hello. I'm trying to select all white pixels, and then refine the edges is what I think is happening in the right image.