What if I crop the picture after calibration and then measure the particles?

18 vues (au cours des 30 derniers jours)
Ziming Zhong
Ziming Zhong le 20 Nov 2017
Commenté : Image Analyst le 22 Nov 2017
Hi there! I have a question about measuring the size of segmented particles after cropping the calibrated image.
What I have now are several images that are calibrated with the cameraParameters I generated, which contains the calibration coordinates like image 1 below (the right yellowish squares). What I do after the calibration is to crop the image (use imcrop), generate a mask for the particles and measure the sizes of them (the colonies), like image 2 below. So my question is: after I crop the calibrated image into another, are the sizes of the particles I measured also calibrated? If not, how can I maintain the calibrated size after cropping? Thank you!
Image 1
Image 2

Réponses (1)

Image Analyst
Image Analyst le 20 Nov 2017
You could make your life, and your program easier, by simply fixing your bad image capture environment. Simply make a jig. You should have a light booth with controlled lighting, but at the very least you could put the camera on a copy stand with an L bracket on the floor. Simply shove your dish into the corner of the L and your dish will be perfectly aligned every time. Then you can use fixed rows and columns to crop your image or define a circular ROI. No need to automatically find the dish (with something like stdfilt) when this simple solution will eliminate the need to do that.
  6 commentaires
Ziming Zhong
Ziming Zhong le 22 Nov 2017
Modifié(e) : Ziming Zhong le 22 Nov 2017
Oh, the ruler idea is great! But I'm thinking even I use a ruler in the image, I still need to manually measure the pixel distance between two grids on the ruler, which create errors every time (because pixels are so tiny and I can't even get the same pixel coordinates if I manually crop the image).
I already set up a rigid jig and marked the place for plates. But I need many days to take pictures and the camera was removed and reset on the jig in different photographing days, which leads to the major error in manually measure the pixel distance. How can I solve this problem? Or the error in pixel distance is too small to take into account?
Image Analyst
Image Analyst le 22 Nov 2017
You might need better mounting brackets. Try to get some from Manfrotto or Bogen or RAMMounts. If you can get the camera and lens back into the same position (working distance = lens to sample distance, and same focal length), then the spatial calibration should be the same. So if it's 20 cm, then if you remove and replace the camera it should still be 20 cm field of view, even if it's rotated slightly. If you do want to calibrate off each image then don't use graph paper. Take an object of known dimensions, like a paint chip sample from the hardware store or a metal scale/ruler of known width and measure that in the image.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by