What if I crop the picture after calibration and then measure the particles?
18 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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

0 commentaires
Réponses (1)
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
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.
Voir également
Catégories
En savoir plus sur Camera Calibration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!