Field reference for multiple structure elements that is followed by more reference blocks is an error. How can i solve this?

2 views (last 30 days)
Hello, I attached a file that I used to centralized alphabets in images (view attached file). The problem is when I run it it gives me error "Field reference for multiple structure elements that is followed by more reference blocks is an error". How to remove this error?
Your help is highly appreciated. Thanks.

Accepted Answer

Walter Roberson
Walter Roberson on 16 Apr 2018
When you calculate measure_image you need to double() what you pass to regionprops or otherwise it will analyze each disconnected region.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!