can we obtain depth information from RMI frames?
3 次查看(过去 30 天)
显示 更早的评论
Hi everybody, As known depth information can be obtained from stereo images. But what i'm looking for, is it possible to get depth information from RMI images?? otherwise, is there any similar measure for the RMI images??
thanks
采纳的回答
Walter Roberson
2015-9-14
To expand slightly: You need to approximate depth information from stereo images by examining two images at known distances and angles and using the difference in pixel locations of objects to figure out how far away they must be (the further away, the less they move.) You do this because you have a limited knowledge of the positions of the objects.
For MRI images, however, every voxel has a known location. Scanning is done over a regular grid with known spacing in 2D, and this is repeated for each layer in Z with the distance between the Z layers known. The pixel sizes and the distance between Z layers can be extracted from the headers. Be careful, as it is not uncommon that the Z distance is twice as large as the pixel sizes, so you cannot usually just use pixel indices, but the conversion from indices to coordinates is trivial.
As you can easily calculate the spacial coordinates of every voxel, there is no need to do stereo projection or otherwise approximate locations. You can just calculate distances.
xcoord = column_number * pixel_x_size;
ycoord = row_number * pixel_y_size;
zcoord = slice_number * z_separation;
and then with the x, y, z coordinates of two points in hand, you can use pythagorean theorem, sqrt((x2 - x1)^2 + (y2 - y1)^2 + (z2 - z1)^2)
更多回答(1 个)
Image Analyst
2015-9-14
You can get relative depth and distances from MRI images.
2 个评论
Image Analyst
2015-9-14
Find one point. I don't know what point you want to find though.
Then find the other point. Again, I have no idea what second point you have in mind.
Then use the Pythagorean theorem or the hypot() function to compute the distance (in pixels) between the two points. Multiply by a spatial calibration factor if you need to convert into real world distances, such as millimeters.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Camera Calibration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!