How to use regionprops in matlab?
Show older comments
I have writen a code like this to calculate the mean intensity of my masked image, but it keeps having errors saying that 'regionprops' require Image Process Toolbox.
May I ask what went wrong with this code?
8 Comments
Walter Roberson
on 24 Nov 2019
.. Do you indeed have Image Processing Toolbox licensed and installed?
Yuhong Jin
on 24 Nov 2019
Walter Roberson
on 24 Nov 2019
What shows up for
ver('images')
license('test','Image_Toolbox')
Yuhong Jin
on 24 Nov 2019
Walter Roberson
on 24 Nov 2019
When you did the ver() test then did you see
Image Processing Toolbox Version 11.0 (R2019b)
Yuhong Jin
on 24 Nov 2019
Walter Roberson
on 24 Nov 2019
This is what it should look like if you have the software installed:
>> ver('images')
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.7.0.1216025 (R2019b) Update 1
MATLAB License Number: XXXXXXX
Operating System: Mac OS X Version: 10.13.6 Build: 17G9016
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
Image Processing Toolbox Version 11.0 (R2019b)
If you do not see the Image Processing Toolbox line then you do not have the software installed.
In the command window click on Add-Ons -> Get Add-Ons . In the window that comes up ask to search for Image Processing Toolbox. Click on the first result. In the detailed page that comes up, over to the right hand side near the top, click on Install .
Note: you will be required to shut down MATLAB for the install to proceed.
Yuhong Jin
on 24 Nov 2019
Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!