I tried running the following image compression code on matlab. It was running properly with no errors up til yesterday. But today when I tried to run it, It gave me errors regarding undefined function imshow, wavedec2, etc.
ERRORS:
??? Undefined function or method 'wavedec2' for input arguments of type 'uint8'.
Error in ==> wave_project at 45
[c,s]=wavedec2(input_image,n,wname);
??? Undefined function or method 'imshow' for input arguments of type 'uint8'.
Error in ==> wave_project at 17
imshow(input_image);
I checked the various toolboxes I have by VER command and Image processing toolbox is in it!
This has happened with me before. But the program then, ran afterwards.
PROGRAM:
clear all;
close all;
input_imag7e1 = imread('101_1.tif');
input_image=imnoise(input_image1,'speckle',0.01);
figure;
imshow(input_image);
p=input('enter the number of vanishing moments of wavelett M ');
n=input('enter the decomposition level');
wname = strcat('db',int2str(p));
disp(wname);
[c,s]=wavedec2(input_image,n,wname);