Giter VIP home page Giter VIP logo

Comments (1)

adamancer avatar adamancer commented on September 16, 2024

This is an interesting use case (and very much up my alley) but I'm sorry to say that I don't think this library is going to work for it. There are two issues. One is the part of the tray that is visible in the right side of the image. This isn't a huge deal and can be cropped, but the other issue is that it looks like the images aren't framed similarly enough. To see what I mean, you can run the following code to put the cropped images together side by side:

from stitch2d import StructuredMosaic

mosaic = StructuredMosaic("Run2", dim=7)
mosaic.save("mosaic.jpg")

Which produces this:

mosaic

If you look at the seams where the tiles meet, it looks like the spacing/size of the rulers varies from image to image (that is, the images are not quite flat or at the same distance from the camera). It should still be possible to align them using an image recognition tool. OpenCV, which does most of the heavy lifting in this package, handles cases like these by warping the individual images to better align common features. I didn't include warping in stitch2d (I've found it to be counterproductive for microscope mosaics), so it's too dumb/simple to handle this case.

You might want to check out the stitching tools here, which are more complex but also a lot more flexible. Good luck!

from stitch2d.

Related Issues (9)

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.