Ask Your Question
1

GIMP 2.10 Style Unsharp Mask

asked 2020-01-18 20:43:16 -0600

Larry gravatar image

I need to implement an unsharp mask function for RGB color images which works like the one in GIMP 2.10. GIMP uses a script which I do not quite understand, but it involves light and dark masks. I can do a standard unsharp mask using the OpenCV GaussianBlur() and addWeighted() functions, and it will work like the older versions of GIMP, but the pixels come out much lighter than in the newer GIMP. Can someone point me to a method to do unsharp mask with OpenCV which works like GIMP 2.10?

Thank You

Larry

edit retag flag offensive close merge delete

Comments

1

In 2.10, looks like it is still the same unsharp mask technique in the doc?

The source code for unsharp mask.

Eduardo gravatar imageEduardo ( 2020-01-19 06:48:36 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-01-19 17:38:36 -0600

Larry gravatar image

updated 2020-01-19 17:39:17 -0600

I unfortunately do not understand the gegl syntax, so I do not quite know what that code does, but it appears to be the traditional unsharp mask. In GIMP 2.10, there is a script, "unsharp-mask.scm" (link), which is doing something with "lighter" and "darker" masks, and the images come out looking much different in GIMP 2.10 than in GIMP 2.8 or in my code using OpenCV. I was really hoping to find some example code showing how to do the GIMP 2.10 style unsharp mask with OpenCV. My client/boss is demanding it, and it needs to be done yesterday.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-01-18 20:43:16 -0600

Seen: 439 times

Last updated: Jan 18 '20