Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate tiff file after post-processing #89

Open
leofang opened this issue Mar 2, 2020 · 1 comment
Open

Generate tiff file after post-processing #89

leofang opened this issue Mar 2, 2020 · 1 comment
Milestone

Comments

@leofang
Copy link
Contributor

leofang commented Mar 2, 2020

From @hanfeiyan:

Can we also save tif file for obj and prb data? For example a stacked tif with amplitude and phase separated. This will make viewing the results easier. Currently I have to start python, write a few line of code to read the output. ASCII is also ok.

This is pending @xiaojinghuang's response.

@leofang leofang added this to the v1.5.0 milestone Mar 2, 2020
@leofang
Copy link
Contributor Author

leofang commented Mar 2, 2020

From @xiaojinghuang:

Currently, two folders are created for saving the reconstruction results: recon_pic and recon_data. We can consider to create a new folder for tiff files, such recon_tiff. Essentially, we can save all the numpy arrays in recon_data folder into tif.

The command I’m using for tiff saving is:
$from skimage import io
$io.imsave(‘file_name.tif’, data_array.astype(np.float32))

For complex array, the amplitude and phase parts need to be saved separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant