Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating an "opposite" image
#22
(03-30-2022, 04:26 PM)Krikor Wrote: By superimposing the final result (the opposite image) over the contours of the initial image, with a red layer in the background, it is possible to see a small gap generated in this process.

At least in my tests, only the procedure suggested by Denzjos did not present this gap.
[Image: jaZ6k00.jpg]

A faint gap is normal and expected!

If your process is correct, the pixels that are anti-aliased black-to-transparent become anti-aliased transparent-to-black, or, in other words, they get the complementary opacity so are still only partially opaque. So when you overlap both images, you overlap partially opaque pixels with other partially opaque pixels and cannot get a full opacity, so you see a faint gap.

If there is no gap, the opposite image is too thick, and if there are fully transparent pixels in the gap, the opposite image is too thin.

It's the same as doing this:
  • Create a layer filled with black and duplicate it.
  • Create a circle selection
  • On one layer, delete the selection
  • On the other layer, Select > Invert and delete the selection
  • Check the result over a white layer
  • You can also (without a white background) use the pointer dialog to check the alpha of the pixels in the gap and check that all pixels are above 75% opacity(*)
   

(*) because the pixels with opacity X in one layer will have opacity 1-X in the other. When you apply this in the alpha-compositing formula the resulting opacity is expressed by 1-X+X² which in the [0.0, 1.0] range has a minimum of 0.75 for X=0.5
Reply


Messages In This Thread
Creating an "opposite" image - by Cjrearl84 - 03-24-2022, 10:40 PM
RE: Creating a "opposite" image - by Ofnuts - 03-24-2022, 11:02 PM
RE: Creating an "opposite" image - by sallyanne - 03-27-2022, 01:21 PM
RE: Creating an "opposite" image - by PixLab - 03-27-2022, 05:33 PM
RE: Creating an "opposite" image - by Cjrearl84 - 03-27-2022, 09:22 PM
RE: Creating an "opposite" image - by sallyanne - 03-28-2022, 11:34 AM
RE: Creating an "opposite" image - by PixLab - 03-28-2022, 03:11 PM
RE: Creating an "opposite" image - by Krikor - 03-29-2022, 02:35 AM
RE: Creating an "opposite" image - by PixLab - 03-29-2022, 09:41 AM
RE: Creating an "opposite" image - by Ofnuts - 03-29-2022, 11:19 PM
RE: Creating an "opposite" image - by PixLab - 03-30-2022, 03:16 AM
RE: Creating an "opposite" image - by Krikor - 03-30-2022, 01:51 AM
RE: Creating an "opposite" image - by Ofnuts - 03-30-2022, 07:32 AM
RE: Creating an "opposite" image - by PixLab - 03-30-2022, 08:23 AM
RE: Creating an "opposite" image - by denzjos - 03-30-2022, 10:11 AM
RE: Creating an "opposite" image - by tmanni - 03-30-2022, 12:31 PM
RE: Creating an "opposite" image - by Krikor - 03-30-2022, 03:55 PM
RE: Creating an "opposite" image - by PixLab - 03-30-2022, 04:20 PM
RE: Creating an "opposite" image - by Krikor - 03-30-2022, 04:26 PM
RE: Creating an "opposite" image - by Ofnuts - 03-30-2022, 05:13 PM
RE: Creating an "opposite" image - by Krikor - 03-30-2022, 05:58 PM
RE: Creating an "opposite" image - by PixLab - 03-31-2022, 08:16 AM
RE: Creating an "opposite" image - by Krikor - 03-31-2022, 05:33 PM
RE: Creating an "opposite" image - by PixLab - 04-02-2022, 05:04 AM
RE: Creating an "opposite" image - by Krikor - 04-03-2022, 12:09 AM
RE: Creating an "opposite" image - by PixLab - 03-30-2022, 04:27 PM
RE: Creating an "opposite" image - by Krikor - 03-30-2022, 04:31 PM
RE: Creating an "opposite" image - by PixLab - 03-30-2022, 05:24 PM
RE: Creating an "opposite" image - by Ottia Tuota - 04-04-2022, 03:18 PM
RE: Creating an "opposite" image - by Krikor - 04-04-2022, 06:00 PM
RE: Creating an "opposite" image - by Ottia Tuota - 04-04-2022, 06:17 PM

Forum Jump: