How can I count the connections between different colored particles?
5 次查看(过去 30 天)
显示 更早的评论
I have a project, where I have to follow the homogeneity of a particle bed during mixing. For this, I chose the contact method: the more contacts between different colored particles, the more the bed becomes homogeneous. I already reduced the picture to 3 colors: the background is black and the two type of particles are red and white. I appreciate every answer, thank you!
6 个评论
Guillaume
2018-6-28
Can you confirm that you only want to count the points of contact between different coloured particles, not the same colour.
What is the definition of a point of contact? If a red blob touches a red blob at 3 adjacent pixels, is it 3 point of contacts?
回答(2 个)
Elliott Gorman
2018-7-10
Just an idea, but what if you checked if there are different colors, other than the red and white where particles have collided? I'm thinking, when the red and white overlap, they should amalgamate to create a pinkish color, no? Or does one particle simply overwrite the other? When they contact, I'd imagine there would be a point at which those two separate colors interact. If you could count not the incidents, but the number of times this specific range of colors (pinkish) comes up, then should that not be what you are looking for?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!