Reply by Euphoria Stone March 17, 20062006-03-17
You cant perform mathematical operations on images of uint8. Convert the image to double with im2double() function. Get the power. Then convert the double image to uint8 by the function im2uint8(). %---- s=imread( 'pout.tif'); t=im2double(s); u= t^0.3; v=im2uint8(u); %---- --- Moniba Shams wrote: > hey > > I want to take power of unit8 type variable. > > For example s is an image whcih is read in 2 > dimensional array.The values in 2 dimensional array > are of type unit8.The power is less than > one.(greater > than zero) e.g. 0.3. > > Deperately waiting for replies. > > Moniba >
Reply by Moniba Shams March 16, 20062006-03-16
hey

I want to take power of unit8 type variable. 

For example s is an image whcih is read in 2
dimensional array.The values in 2 dimensional array
are of type unit8.The power is less than one.(greater
than zero) e.g. 0.3.

Deperately waiting for replies.

Moniba