I’m trying to use getImageCropped from PyAutoscoper to extract the cropped DRR image of a volume at a given pose. My setup works fine otherwise – getPose, getNCC, optimizeFrame, and trackingDialog all work correctly. This is the output i am getting:
The width and height (1760x1760) look correct, but the byte array is only 1015 bytes long and entirely zeros. For a 1760x1760 image I’d expect significantly more data.
- What is getImageCropped supposed to return exactly? The docstring says list[float] but it actually returns [width, height, raw_bytes]. What format/dtype is the image data (float32, uint8, RGB, grayscale)?
- Is there another recommended way to programmatically extract DRR or radiograph images from Autoscoper?
Thanks for the help!
