how to select a specified region in an image based on location and calculate its area
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
helwan ghgs
el 26 de Dic. de 2014
Editada: Image Analyst
el 1 de En. de 2015
I want to calculate the area of the material included in each pucket?
2 comentarios
Image Analyst
el 26 de Dic. de 2014
What is the material, and what is a pucket?
The lighting is very bad. Try to improve it and your task will be a LOT easier.
See my File Exchange for several image segmentation demos http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Respuesta aceptada
Mohammad Abouali
el 26 de Dic. de 2014
then the area would be sum(p(:))*pixelsize^2 if you want to automate this, then you need to first write a code that detects those region that you want.
2 comentarios
Más respuestas (1)
Image Analyst
el 26 de Dic. de 2014
I don't know what/where the bucket is, what/where the sand is, and where the shadows are. The lighting is horrible and could definitely be improved. Plus who's idea was it to have a sand-colored background when you want to find sand pouring in front of it?!?! The disc thing should be black or at least some contrasting color. I'd fix all that first since it's far easier to design an image analysis algorithm if you have a good image to start with.
11 comentarios
Image Analyst
el 1 de En. de 2015
Editada: Image Analyst
el 1 de En. de 2015
You said "I need Area_1 to be a matrix of the number of the number of image files being processed. " A matrix is a 2D array and I already saw that you were using that equation for one of them so I figured the second column would be the "number" like you asked for. But now it seems like you just want a row or column vector (1-D array) rather than a matrix. To get that, simply index Area_1 with filesProcessed. Don't use k because some k's may be skipped if there is no image for that k.
Area_1(filesProcessed) = (d_1 / b) * 1963.5;
You don't need to credit me specifically in your work but maybe you can just say something like "I wish to thank the volunteers in the MATLAB Answers forum for their helpful guidance and suggestions" or something similar.
Ver también
Categorías
Más información sobre Repeated Measures and MANOVA en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!