On 5/10/2013 7:44 PM, Mohammad Manirul wrote:
> Hi,
> I need ur help. I want to get square root of 3 dimensional image. My input dimension is given below:
>
> input= 768X1024X3 uint8.
>
> But the error msg shows that " Undefined function or method 'sqrt' for input arguments of type 'uint8'."
>
> PLZ let me know if you have solution.
>
try to convert the image to data type such as double?
EDU>> x=uint8(8)
EDU>> sqrt(x)
Undefined function 'sqrt' for input arguments of type 'uint8'.
EDU>> sqrt(double(x))
ans =
2.8284
--Nasser
> Hi,
> I need ur help. I want to get square root of 3 dimensional image. My input dimension is given below:
>
> input= 768X1024X3 uint8.
>
> But the error msg shows that " Undefined function or method 'sqrt' for input arguments of type 'uint8'."
>
> PLZ let me know if you have solution.
>
try to convert the image to data type such as double?
EDU>> x=uint8(8)
EDU>> sqrt(x)
Undefined function 'sqrt' for input arguments of type 'uint8'.
EDU>> sqrt(double(x))
ans =
2.8284
--Nasser