diff --git a/bench/graphics/log-transform.fpcore b/bench/graphics/log-transform.fpcore new file mode 100644 index 000000000..fe36e9097 --- /dev/null +++ b/bench/graphics/log-transform.fpcore @@ -0,0 +1,11 @@ +; This example is taken from the Image Processing domain and referred to +; as "Logarithmic Transform". This in its basic form is used to bring out +; details in dark parts of an image. This instantiation of the idea is for 1D +; as opposed to 2D images. + +(FPCore (c x y) + :name "Logarithmic Transform" + :alt + (* c (log1p (* (expm1 x) y))) + + (* c (log (+ 1.0 (* (- (pow E x) 1.0) y))))) \ No newline at end of file