POV-Ray : Newsgroups : povray.binaries.images : Unsharp mask Server Time
25 Dec 2024 21:00:02 EST (-0500)
  Unsharp mask (Message 1 to 5 of 5)  
From: Tor Olav Kristensen
Subject: Unsharp mask
Date: 15 Feb 2019 15:10:01
Message: <web.5c671c51d41414a4264be49d0@news.povray.org>
It's common to enhance images before displaying them by applying the Unsharp
Mask filter to them. (Gimp and other image editors can be used for doing this.)

I've now added an example in my Gaussian blur GitHub repository that shows how
one can apply an Unsharp Mask filter to images with POV-Ray alone.

The attached image shows an example image where such a filter has been applied
with POV-Ray.

--
Tor Olav
http://subcube.com


Post a reply to this message


Attachments:
Download 'image_unsharp_mask.png' (746 KB)

Preview of image 'image_unsharp_mask.png'
image_unsharp_mask.png


 

From: Tor Olav Kristensen
Subject: Re: Unsharp mask
Date: 15 Feb 2019 15:20:01
Message: <web.5c671df0b7a55a2b264be49d0@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> It's common to enhance images before displaying them by applying the Unsharp
> Mask filter to them. (Gimp and other image editors can be used for doing this.)
>
> I've now added an example in my Gaussian blur GitHub repository that shows how
> one can apply an Unsharp Mask filter to images with POV-Ray alone.
>
> The attached image shows an example image where such a filter has been applied
> with POV-Ray.

Here's the original image.

The difference in sharpness can easiest be spotted by examining the "Mercury"
text on the outboard engine.

For the source code, see the file Image_Unsharp_Mask.pov in this repository:
https://github.com/t-o-k/POV-Ray-gaussian-blur

--
Tor Olav
http://subcube.com


Post a reply to this message


Attachments:
Download 'smallboat_800x600.png' (576 KB)

Preview of image 'smallboat_800x600.png'
smallboat_800x600.png


 

From: Dave Blandston
Subject: Re: Unsharp mask
Date: 16 Feb 2019 01:40:01
Message: <web.5c67afcab7a55a2b79416a1f0@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> I've now added an example in my Gaussian blur GitHub repository that shows how
> one can apply an Unsharp Mask filter to images with POV-Ray alone.

That's astounding! I may already have a use for this. I have a scene that uses a
bitmap image as a background and I noticed that using an image_map blurs the
image slightly (unless I'm doing something wrong). Maybe your unsharp mask will
help this scene.

Thank you for sharing this inspirational source code!

Regards,
Dave Blandston


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Unsharp mask
Date: 16 Feb 2019 22:25:00
Message: <web.5c68d367b7a55a2b84b489d90@news.povray.org>
"Dave Blandston" <nomail@nomail> wrote:
> "Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> > I've now added an example in my Gaussian blur GitHub repository that shows how
> > one can apply an Unsharp Mask filter to images with POV-Ray alone.
>
> That's astounding! I may already have a use for this. I have a scene that uses a
> bitmap image as a background and I noticed that using an image_map blurs the
> image slightly (unless I'm doing something wrong). Maybe your unsharp mask will
> help this scene.
>
> Thank you for sharing this inspirational source code!

I'm glad to hear this Dave.

Don't hesitate to ask if there's anything you need me to explain about these
macros.

--
Tor Olav
http://subcube.com
https://github.com/t-o-k/


Post a reply to this message

From: Dave Blandston
Subject: Re: Unsharp mask
Date: 17 Feb 2019 01:15:01
Message: <web.5c68fba8b7a55a2b79416a1f0@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> Don't hesitate to ask if there's anything you need me to explain about these
> macros.

That's a very kind offer. My computer is out for repairs for the next week to
two so I'll have to wait until it's back to see if your macros will work with
the particular project I have in mind. The improvement on the boat picture is so
dramatic that I can't wait to give it a try! The specifics of the scene I'm
working on are that I'm using an image mapped to a plane as a background,
combined with some CSG objects in the foreground. POV blurs the background image
slightly. The CSG objects don't need any sharpening so I don't want to apply the
unsharp mask to the completed image but I'm hoping your macros can restore the
background image to its original sharpness during the rendering process.

Regards,
Dave Blandston


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.