How to calculate the volume of each pixel?

2 views (last 30 days)
Paul Costache
Paul Costache on 10 Aug 2021
Commented: Image Analyst on 11 Aug 2021
Hello, I am working on this project where the goal is to use pictures of sand/small stone particles taken with a digital microscope and calculate their volume. The microscope software also allows me to save the result in form of a 2D-height map which will be used to calculate the volume. I used Color Thresholder App and HSV.
After getting a masked Image where the background, margin particles, etc. are removed I need to calculate the area of each pixel and multiply it with the height given by the color map.
As the particles differ in height the maximum in the color map (dark red) needs also somehow to be included in the code (channel 1 in HSV, goes from 0-255).
As I can't ask how it's done, I would kindly ask you if you know similar projects (as I couldn't find anything similar) or ask for some hints to some useful pages in the documentation or formulas. As a side note this is my first time using matlab, therefore if I somehow missed something obvious, this would be the explanation why.
  1 Comment
Image Analyst
Image Analyst on 11 Aug 2021
You just rendered your question useless with your edit when you removed the pictures. I would not expect any more answers. So, good luck with it.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 11 Aug 2021
You can't get the volume from one view unless you make assumptions. Like the blob is a sphere. Or it's a cylinder whose radius varies along it's spine, or something like that. Why do you need the volume? Why can't the area distribution be good enough for whatever you want to do?

Products

Community Treasure Hunt

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

Start Hunting!