Can't find this function - RegionPropertiesALX

While trying to run an open source camera tracking program in Matlab, I get this error:
??? Error using ==> RegionPropertiesALX
Error Message: Internal Error: Dynamic cast faild
Error in ==> regionprops at 17
stats = RegionPropertiesALX(varargin{:});
I can find regionprops in the image toolbox, but regionprops just calls RegionPropertiesALX, which I can't find. Am I not supposed to be able to find this function, or is it missing and this is causing the error? Does anyone know how to fix a dynamic cast error?
Thanks, Jessica

1 Comment

Sounds like your installation of the Image Processing Toolbox may be corrupted because it should contain everything you need - everything that included functions such as regionprops needs. Call the Mathworks for more help. Should be free since it seems to be an installation issue to me.

Sign in to comment.

Answers (1)

In 2008b, regionprops.m has far more than 17 lines of help information and so line 17 is much too early in the file to be executable code.
Please try
>> which -all regionprops
The path shown should end in something like
toolbox/images/images/regionprops.m

3 Comments

Thanks - I have MATLAB version R2011b, and regionprops is a function with only one line of executable code, which is
stats = RegionPropertiesALX(varargin{:});
So I think something is wrong with RegionPropertiesALX. But it's a .mexw32 file and I don't know how to fix it.
Does "which" show a path similar to the above?
I do not have the R2011b pre-release to test with.
Yeah, the path looks right. I'm still trying to figure out the error.

Sign in to comment.

Categories

Asked:

on 8 Jul 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!