The linear LUT is raised to a user specified double value.
function call:
[out_img1]=vsg('Power',in_img1,num1);
Arguments:
in_img1 input image,
3 channel
num1 – a double
specifying to which power to raise the input pixels’ value.
Description:
out_img1
– An image which has dimensions the same as the input image. The output
pixel values are the normalised power function of the input pixel
values, i.e. in_img1^num1.
Example:
img = openimage('crown.jpg');
h=figure;image(uint8(img));set(h,'Name','Input
Image');
[out_img1]=vsg('Power',img,2);
h=figure;image(uint8(out_img1));set(h,'Name','Power');
Notes:
1. For DICOM images,
the function operates on all slices separately.
2. For