Skip to content

Log Transformation

Jeet edited this page Jul 26, 2022 · 2 revisions

Log transformation is usually applied on Fourier transformed images. I have used the same green bee-eater image and tried multiple constants.

Command Line

Original image:

Original Image

Constant = 900:

$loomis -command log_transformation -levels 900 testdata/green-bee-eater-grayscale.jpg

Constant = 900

Constant = 100:

$loomis -command log_transformation -levels 100 testdata/green-bee-eater-grayscale.jpg

Constant = 100

Constant = 50:

$loomis -command log_transformation -levels 50 testdata/green-bee-eater-grayscale.jpg

Constant = 50

Library Usage

newImage := pkg.LogTransformation(image, constant)

image is of type image.Image
constant is an integer

Clone this wiki locally