dentifying and marking image regions

Hello all,

I have an image (original.png) that I need to separate regions where there are and are not these white dots. The final image should look something like (final.png).

I’ve tried playing with some image processing functions but because the spaces between the dots is so large relative to the size of the dots I can’t find an effective way of filling in the spaces.

Original

Final

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

There are at least four ways that I can think of. One is to to an imclose() with a really big kernel — big enough so that the dots connect. Then use bwboundaries to find the “envelope.”

The second way is to use alpha shapes . The File Exchange has submissions on alpha shapes, as well as snakes, active contours, balloons, or whatever you want to call them.

The third way is to use a “restricted” convex hull — something I’ve been after the Mathworks for years to add. I have a inefficient demo of that if you’re interested. Basically it’s kind of like the convex hull but it only looks within a certain distance to find convex points, so it has the effects of going into the little bays, nooks, and crannies more. So you’ll get something like you showed in the red line, whereas a standard convex hull is just like you wrapped a rubber band around the points so that you will have no following of the points into bays.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Microservices using Flask(MUF): Redis Caching

SQL-Server automatically auditing Data with Temporal tables

CSS contain used to optimize browsers | 3 types of CSS contain

Long Range Embedded Systems — Part 2

Why Kanban is the Only Option for High-Performing Teams

Dockershim: the Despair of Depreciation and the Death of Docker?

So what’s a good unit test look like?

Debugging SUV Interior Lights

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

Image Acquisition Toolbox — imaqtool gets only black images

Image Classification on Grape Leaves Disease using Deep Learning

Sign Language Recognition using Neural Networks

Using Blender for plotting