how to convert Pixel to cm
15 ビュー (過去 30 日間)
古いコメントを表示
Hi all
Hope you are keeping good and enjoying a lot. i contoured some region of a image using imfreehand. i want to caculate the volume of every pixel inside the contour. but the information i have get in pixels[X and Y coordinate values are in pixel] and Z coordinate is thickness of the image which is in cm. i need to convert the pixel to cm to get the volume of the each pixel. is there any formula or any suggestions???
but for the whole image i have voxel size information as below. voxel size [Y=0.09cm, Y=0.09cm, Z=0.18cm].will this helpful.
any help is appreciated in advance.
6 件のコメント
Walter Roberson
2021 年 7 月 31 日
I do not recall having encountered a flir image that had depth information. I suppose in theory you could infer depth if you had stereo flir images, which is something that could be done and could perhaps be useful... is that what you have, two flir images of the same scene with different angles and known relationships between the views??
Image Analyst
2021 年 7 月 31 日
編集済み: Image Analyst
2021 年 7 月 31 日
@Oscar Garcia (expand comments to wee Walter's above mine), what is your definition of volume? You mean the true spatial volume like units of cubic cm? You can't get that from a single 2-D image, not even a range/topographic image unless you make some assumptions as to where the "back" of the object is and what shape it has. Or maybe you mean the integrated gray value in some region of interest -- kind of like the intensity was a surface and you want the volume below the surface. I suggest you start your own question and attach your images and indicate what region in the image you want the "volume" of. In the meantime, see attached spatial calibration demo.
回答 (1 件)
Walter Roberson
2013 年 9 月 17 日
Multiply number of pixels by 0.09cm to get length in cm. Number of total pixels times (0.09)^2 to get the area in cm^2. Multiply that by 0.18 to get volume in cm^3
7 件のコメント
Image Analyst
2013 年 9 月 17 日
How did you find this workbook?
Can't you just plug the x and y into polyarea() to get the area in pixels, then multiply by 0.09^2 to get the area in cm^2?
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!