We set the given number of least significant bits to zero with this method.
$loomis -command bitplane_slicing -bits 2 testdata/green-bee-eater-grayscale.jpg
$loomis -command bitplane_slicing -bits 4 testdata/green-bee-eater-grayscale.jpg
$loomis -command bitplane_slicing -bits 7 testdata/green-bee-eater-grayscale.jpg
newImage := pkg.BitPlaneSlicing(img, numberOfBits) image is of type image.Image numberOfBits is a number between 1 and 7 representing number of bits
There was an error while loading. Please reload this page.