Reputation: 48946
I found that there is a method called imquantize
in order to make a quantization of the input image. I'm trying to make a quantization using 4-bits. I did the following:
>> quan = imquantize(im,16);
But, I got the following error:
??? Undefined function or method 'imquantize' for input arguments of type 'unit8'
How can I go around this?
Thanks.
Upvotes: 1
Views: 2950
Reputation: 179552
imquantize
is new to the 2012b release of the Image Processing Toolbox. Therefore, if you don't have 2012b (released last month), you won't have imquantize
.
In any case, your usage of imquantize
would be incorrect. imquantize
takes, as a second argument, a vector of levels to be used as the threshold. Those levels could, for example, be obtained through multithresh
(which is also new to IPT 2012b).
Upvotes: 2
Reputation: 20126
imquantize
is a new function introduced in Image Processing Toolbox R2012b. You can check which image processing toolbox is installed on your matlab (if any) by invoking this command:
ver
Upvotes: 2