MATLAB: Undefined function or method ‘imsharpen’ for input arguments of type ‘uint8’.

i have convert into double but this is not working. matlab version is r2007bImage Processing Toolbox

if true
% code
d1=imread('j.jpg');
b = imsharpen(d1);
subplot(2,2,4); imshow(b); title('Sharpened Image'); end

Best Answer

Type ver at the command prompt. Do you see the Image Processing Toolbox:
MATLAB Version 8.3 (R2014a)
Image Acquisition Toolbox Version 4.7 (R2014a)
Image Processing Toolbox Version 9.0 (R2014a)
imsharpen is in that toolbox. If you don't have that toolbox, that would explain your error.