From: Angel on
I have recently remove from my Vista laptop Matlab 7 and install Matlab R2007a. I want to apply hough transform to an image but it seems imposible as not even including in Matlab example for hough function works. (same result for grayscale image!!!)

RGB = imread('gantrycrane.png');
I = rgb2gray(RGB); % convert to intensity
BW = edge(I,'canny'); % extract edges
[H,T,R] = hough(BW,'RhoResolution',0.5,'ThetaResolution',0.5);

it turns out the following message:

??? Undefined function or method 'houghmex' for input arguments of type 'double'.

Error in ==> hough at 83
h = houghmex(bw,rho,theta*pi/180);
From: ImageAnalyst on
I copied and pasted your code and it ran perfectly fine. I added the
rest of the code from the example and that ran fine too. I have
R2010a. Maybe you should upgrade - your version is 3 years old so
it's about time.
From: Angel on
I do not have the time now. I have an assiment for tommorow 24:00
My classmates have th same edition and works without any problems.
Could have anything to to with Vista compatibility?
From: ImageAnalyst on
On May 8, 11:46 am, "Angel " <theodan...(a)gmail.com> wrote:
> I do not have the time now. I have an assiment for tommorow 24:00
> My classmates have th same edition and works without any problems.
> Could have anything to to with Vista compatibility?

--------------------------------------------------------------
I have no idea. I guess you'll have to borrow a classmate's computer.
From: Angel on
> I have no idea. I guess you'll have to borrow a classmate's computer

Yes. I fed up with the situation.
thanks for your time anyway.