BrownBiomechanics / Autoscoper

Autoscoper is a 2D-3D image registration software package.
https://autoscoper.readthedocs.io
Other
8 stars 5 forks source link

Export Full DRR image: Does not create output directory #7

Open NicerNewerCar opened 2 years ago

NicerNewerCar commented 2 years ago

When exporting pgm images with Export>Export Full DRR image the output directory of C:/_MyDRRs/ is not autocreated and the images are written to nowhere.

Temp fix: Manually create the output directory of C:/_MyDRRs/. Real fix: Having the program auto-create the directory if it does not exist already.

amymmorton commented 2 years ago

Nice catch Anthony. @BardiyaAk added this functionality in 2019. Mostly the use has been from external program/socket use.

I will upload to our XGen repo a sample matlab script showing the generation. Folder check had been done there.

Still prudent to mkdir if nonexistent.

amymmorton commented 2 years ago

See sample code XGen Exporting DRRs

NicerNewerCar commented 1 year ago

https://stackoverflow.com/questions/9235679/create-a-directory-if-it-doesnt-exist https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createdirectorya?redirectedfrom=MSDN