GithubHelp home page GithubHelp logo

Comments (3)

nicolasrenier avatar nicolasrenier commented on July 26, 2024 1

I have to admit that certain tif formats can be a pain. We use ClearMap with the ome tiffs, but sometimes when we import tiff data coming from other sources it can be a problem. My recommendation is to convert the files to a less capricious format, such as the npy arrays, or I found nrrd works well for the most part. But depending on your sources, this might take a few tries to get the right format that can be opened with the tifffile library. ImageJ with BioFormat can really help in most cases to do these conversions.

from clearmap2.

SaibotMagd avatar SaibotMagd commented on July 26, 2024

I found the solution: "convert the tif-files to npy-files before resampling". Why? I don't know.

Quote from TubeMap Tutorial: "

Tile conversion

ClearMap makes use of accessing binary files in parallel. 
For optimal performance we recommend to convert the data to numpy files.

I think this is evidence that this isn't just "recommended". It actually changes the outcome.

from clearmap2.

ZachPenn avatar ZachPenn commented on July 26, 2024

Thanks for posting your fix to this @SaibotMagd! I ran into the same issue with .tif stack files, and really didn't want to continue dealing with folders of thousands of ome.tif files -- the conversion to npy worked great for me.

from clearmap2.

Related Issues (20)

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.