Code Monkey home page Code Monkey logo

Comments (6)

ZyHUpenn avatar ZyHUpenn commented on August 20, 2024 1

Right, when I open the denoised.tif in imageJ it shows all the frames. The code should be all good, thank you very much! Maybe I need to find another way to load it on python, the denoised.tif 's 32-bit format may cause cv2's problem I guess anyway.

from support.

ZyHUpenn avatar ZyHUpenn commented on August 20, 2024

I tried to use python's cv2.imread(denoised.tif,-1) to read the output tiff file, it seems the result is only one image instead of a whole 3-D movie. I checked the testGUI.py is using tifffile.imwrite(append = 'True'), so I don't know what's wrong with it?

from support.

SteveJayH avatar SteveJayH commented on August 20, 2024

In our side, we're not sure if that issue exist... With test_GUI, I checked that denoised.tif contains multiple frames, not only one frame.
Did you tried with demo data at src/sample_data.tif ??

I just tried as followings.

  1. python -m src.GUI.test_GUI to open GUI.
  2. Browse src/sample_data.tif. Then, start index will be 1 and end index will be displayed as 300. Also, save path will be automatically selected as data/SUPPORT/current_timestamp/.
  3. Press Run button. And if you go to the save path, you may see the size of denoised.tif will keep increasing as the inference goes on. I'm not sure of cv2.imread, but if I open the denoised.tif with ImageJ/fiji, the data contains 300 frames.

If you did not tried with demo data, please check if our code with this data works well.
Let me know if it works or not.

Also, if the code with demo data works well, but not for your custom data, let me know. We can find if the code is going wrong with your data.

from support.

SteveJayH avatar SteveJayH commented on August 20, 2024

Ah okay, I also do not use cv2 when dealing with these microscopy images (I feel like they are well suited to 8bit "natural" images).
I think tifffile package or skimage.io package will be nice to load 16 or 32-bit images.
(Internally, skimage.io will use tifffile to read and write with tif images)

from support.

starquakes avatar starquakes commented on August 20, 2024

Right, when I open the denoised.tif in imageJ it shows all the frames. The code should be all good, thank you very much! Maybe I need to find another way to load it on python, the denoised.tif 's 32-bit format may cause cv2's problem I guess anyway.

Hi! May I ask if you resolved the problem already? I tried skimage.io but it still only gives one frame image. I checked the metadata in ImageJ, the problem seems to be a wrong dimension (the T dimension was written as the Z dimension).

from support.

ZyHUpenn avatar ZyHUpenn commented on August 20, 2024

from support.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.