Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
function to execute in Matlab 2012b

Subject: function to execute in Matlab 2012b

From: Mark Gul

Date: 6 Jan, 2013 13:47:08

Message: 1 of 2

I have a piece of code to execute in Matlab 2012b. It does not work.
In Matlab 2012a, It was fine but it was crashing all the time because of the Java Error.
So, In latest version, another simple problem stopped me to continue my work

-----------------------------------------------------------------------------
imagen = imread('1.jpg');
if size(imagen,3)==3 % RGB image
    imagen=uint8(rgb2gray(imagen));%rgb2gray(imagen);
end
REGIONS = detectMSERFeatures(imagen)
-------------------------------------------------------------------------------
I get the following error:
Undefined function 'detectMSERFeatures' for input arguments of type 'uint8'.
---------------------------------------------------------------------------------------------------------

Can someone help me? I will be highly thankful

Best Regards

MG

Subject: function to execute in Matlab 2012b

From: Steven_Lord

Date: 7 Jan, 2013 15:24:26

Message: 2 of 2



"Mark Gul" <mykhalidiqbal@gmail.com> wrote in message
news:kcbv8s$f3p$1@newscl01ah.mathworks.com...
> I have a piece of code to execute in Matlab 2012b. It does not work.
> In Matlab 2012a, It was fine but it was crashing all the time because of
> the Java Error.
> So, In latest version, another simple problem stopped me to continue my
> work
>
> -----------------------------------------------------------------------------
> imagen = imread('1.jpg');
> if size(imagen,3)==3 % RGB image
> imagen=uint8(rgb2gray(imagen));%rgb2gray(imagen);
> end
> REGIONS = detectMSERFeatures(imagen)
> -------------------------------------------------------------------------------
> I get the following error:
> Undefined function 'detectMSERFeatures' for input arguments of type
> 'uint8'.

This is a function from Computer Vision System Toolbox.

http://www.mathworks.com/help/vision/ref/detectmserfeatures.html

Perhaps you have this toolbox installed in your installation of release
R2012a but do not have it available in your installation of release R2012b.
Use the VER function to check if you have this toolbox installed and contact
your license administrator if it is not installed but you think it should be
installed.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us