phenopolis / visual_fields_extraction

Python scripting framework for extraction data from Humphrey Visual Fields
GNU General Public License v3.0
0 stars 0 forks source link

Also extract Images #1

Closed IsmailM closed 2 years ago

IsmailM commented 2 years ago

e.g.

from PIL import Image
Image.fromarray(hvf_obj.image).save("tmp/out/orig.jpeg")
Image.fromarray(hvf_obj.raw_value_array.plot_image).save("tmp/out/raw_value_array.jpeg")
Image.fromarray(hvf_obj.abs_dev_value_array.plot_image).save("tmp/out/abs_dev_value_array.jpeg")
Image.fromarray(hvf_obj.pat_dev_value_array.plot_image).save("tmp/out/pat_dev_value_array.jpeg")
Image.fromarray(hvf_obj.abs_dev_percentile_array.plot_image).save("tmp/out/abs_dev_percentile_array.jpeg")
Image.fromarray(hvf_obj.pat_dev_percentile_array.plot_image).save("tmp/out/pat_dev_percentile_array.jpeg")

See https://github.com/msaifee786/hvf_extraction_script/issues/1

alanwilter commented 2 years ago

Done in vf_extraction_lambda code