-
Notifications
You must be signed in to change notification settings - Fork 181
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
save multiple tif images instead of one #328
Comments
hi @ObadaM, sorry for the late response. What is the shape of your corrected images object? |
hi @boazmohar Thanks for your reply and sorry for the late reply. I tried your suggestion and I got the following error
The result image from the reduce was a tif image with only one frame. |
@ObadaM Hi, It is hard for me to understand the error without knowing the code that generated it. It looks like something went wrong before the writing to tif.
If none of this produces an error and all the shapes make sense, we could investigated deeper about the writing to tif step. |
Here is my code, the shape is the same always. I am new to python and I find problem solving this kind of issues.
Thanks for your help! |
@ObadaM, It seems that the function used to save tif files in Thunder doesn't support 3d images. import thunder.rdds.fileio.tifffile as tifffile
local = corrected.toarray()
writer1 = tifffile.TiffWriter('cor/corr.tif')
writer1.save(local.transpose((2, 0, 1)).astype(dtype='float32'), photometric="minisblack")
writer1.close()
del writer1 @freeman-lab Is there a reason not to switch to tifffile for saving as well? |
@boazmohar I could not find rdds in thunder. i have the last version of thunder 1.0.0
|
Sorry about the import. Thanks, Traceback (most recent call last): — |
it is okay but also skimage does not have this import. |
I am trying to save my corrected tif image after I applied a cross correlation on it. with totif() function.
I am using coalesce to be only one file but it is not working.
corrected.coalesce(1).totif('corrected','tif',False)
am I doing something wrong ?
The text was updated successfully, but these errors were encountered: