Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Performing Mathematical Operations On An image

$
0
0
Hi

I have a requirement to implement below logic written in IDL (Interactive Data Language) to Magick.Net. I think this can only be achieved by using the Fx method but I am not sure how to use the same. Can anyone please help?

Gamma=2.2
Factor=4.0
Filter=[-0.03,-0.03,0.03] ; blue colored filter
BLg=(BL/255.0)^gamma
BLgEnh=BLg0B
For ic=0,2 do BLgEnh[ic,,]= Factor
(BLg[2,,] + Filter[ic])
BLEnh=255* (BLgEnh < 1.0) ^ (1/gamma)

In the above algo, BL variable in the original sRGB image and the final output image desired is in variable BLEnh

Viewing all articles
Browse latest Browse all 3693

Trending Articles