How do I convert distance in mm to pixels in MATLAB functions?
이전 댓글 표시
Functions fanbeam, fan2para, para2fan, ifanbeam ask for parameters like "distance from fan-beam vertex to center of rotation", "FanSensorSpacing", "ParallelSensorSpacing" etc.
And these functions ask for pixels, but the DICOM files provide these values in millimeters. I am wondering how do I covert these values from mm to pixels for simulating real-world sinograms?
It would be best if you could give me a simple example. Thank you.
댓글 수: 1
Omar Ali
2019년 12월 30일
a = convlength([3 10 20],'ft','m')
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Transforms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!