How do I solve this particular error? First-time MATLAB user
1 view (last 30 days)
This is the code I'm trying to run:
%Blind embedding and linear correlation detection
%Generate a reference pattern the same size as the images
%Show the reference pattern
%400 face images, 112 x 92 pixels, in 40 folders of 10 images each
%Add reference pattern to the image to embed a 1
%Add negative reference pattern to the image to embed a 0
%Calculate linear correlation for images carrying a 1, a 0,
%or no watermark and store it into a vector
%Calculate the histograms for the detection-value vectors
%Plot the histograms
ylabel('Percentage of images');
When I click 'Save and Run', it gives me this error:
??? Undefined function or method 'blind' for input arguments of type 'char'.
Can anyone help me out? Also the image I'm using is Lena.tiff. I know I need to change the directory from C: onwards but do I also need to change .bmp to .tiff? Any help would be much appreciated.
Alberto on 12 Apr 2014
Looks like you are using a function 'blind': there is not such command, and probably doesnt have a made up function.
The point is you are calling an undefined function.
Walter Roberson on 13 Apr 2014
Look at your first few characters:
If for some reason the '%' is not being recognized as a comment character then that line would be interpreted as a call to "Blind" with the rest of the line as character arguments.
What, by the way, did you name your source file? The source file name must start with a letter, and be followed by letters, digits, or underscore (no spaces) to a maximum of 63 characters, after which there should be a '.m' extension.