Comments (1)
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stitch2d.