« Xojo 2022r4 released | Home | CallKit extension for… »

GraphicsMagick in FileMaker, part 15

🎄
15 of 24

Welcome to the 15th door of our advent calendar. In this advent calendar I would like to take you on a journey through the GraphicsMagick component in December. Every day I will introduce you to one or more functions from this component. In this component you will find functions with which you can analyze images, convert them, change them with filters, draw them and much much more. In the end, you too can take the magic of GraphicsMagick to your images. I wish you a lot of fun in the process.

Yesterday I introduced you to the Blur effect. Today I will show you the opposite effect: Sharpen. This effect sharpens your image. We use the GMImage.Sharpen function. Again we have the same parameters as with the Blur function. First our reference, then the radius which indicates from which area we use the information for the effect and our sigma which describes the effect in more detail.

Set Variable [ $r ; Value: MBS( "GMImage.Sharpen"; $GM ; 10; 10 ) ] 

Here we see a few examples of how the effect can affect:


Radius = 1
Sigma = 10

Radius = 5
Sigma = 10

Radius = 5
Sigma = 20

Radius = 10
Sigma = 10

By the way, the Sharpen effect cannot undo the Blur effect. If I first apply a Blur effect and then apply a Sharpen effect with the same values for Radius and Sigma, the result is not the same image as before (left).


Radius = 10
Sigma = 10

Radius = 10
Sigma = 10

In addition, the sequence of the effects is also important because the image will not look exactly the same if we first apply Sharpen and then Blur (right).

Again we have the function GMImage.SharpenChannel in which we can additionally define a channel.


red Channel
Radius = 10
Sigma = 10

blue Channel
Radius = 10
Sigma = 10

So make your images really sharp. See you again tomorrow.

Previous day   Next day

15 12 22 - 08:09