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
댓글 수: 2
채택된 답변
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!