stitch multiple microscope images using python
I'm trying to stitch a scan of a large area made using a microscope but I'm not having a whole lot of luck.
I started testing with 3 images extracted from a scanning video.
I stitched each 2 matching images but when I want to combine the 2 new composite images it looks very warped.
Does anyone know a decent way to stitch multiple images scanning a surface by changing the perspective but not the angle of view? I've only found ways that assume that the perspective remains constant and you are just rotating around that
Alternative to this problem: is it possible to align images using keypoints without warping?
edit: I've got it working now without any distortions but does anyone know a way to merge images while ignoring black? I want to get rid of these black lines beneath the image.
Edit: Problem solved.
python images opencv photo-stitching
add a comment |
I'm trying to stitch a scan of a large area made using a microscope but I'm not having a whole lot of luck.
I started testing with 3 images extracted from a scanning video.
I stitched each 2 matching images but when I want to combine the 2 new composite images it looks very warped.
Does anyone know a decent way to stitch multiple images scanning a surface by changing the perspective but not the angle of view? I've only found ways that assume that the perspective remains constant and you are just rotating around that
Alternative to this problem: is it possible to align images using keypoints without warping?
edit: I've got it working now without any distortions but does anyone know a way to merge images while ignoring black? I want to get rid of these black lines beneath the image.
Edit: Problem solved.
python images opencv photo-stitching
Nice job. Have you by chance open sourced the code you have accomplished this with?
– creimers
Jan 7 at 17:09
It's a bit messy but I can give you a copy if you want
– Arno van der Weijden
Jan 7 at 19:52
That would be great. How would you prefer to share the copy?
– creimers
2 days ago
It's messy code but it works....we.tl/t-whtVSIWRFc My boss has the full version as an exe but I can't find the code for it anymore. I simply had opencv create a border around each strip that cut slightly into the image itself and removed everything outside of that. After that I had it overlay the strips and allowed for some manual adjustments (no deformations since that would cause major distortions due to the time difference between measuring each strip)
– Arno van der Weijden
11 hours ago
There are some minor distortions in each strip but they are very minor according to my measurements.
– Arno van der Weijden
11 hours ago
add a comment |
I'm trying to stitch a scan of a large area made using a microscope but I'm not having a whole lot of luck.
I started testing with 3 images extracted from a scanning video.
I stitched each 2 matching images but when I want to combine the 2 new composite images it looks very warped.
Does anyone know a decent way to stitch multiple images scanning a surface by changing the perspective but not the angle of view? I've only found ways that assume that the perspective remains constant and you are just rotating around that
Alternative to this problem: is it possible to align images using keypoints without warping?
edit: I've got it working now without any distortions but does anyone know a way to merge images while ignoring black? I want to get rid of these black lines beneath the image.
Edit: Problem solved.
python images opencv photo-stitching
I'm trying to stitch a scan of a large area made using a microscope but I'm not having a whole lot of luck.
I started testing with 3 images extracted from a scanning video.
I stitched each 2 matching images but when I want to combine the 2 new composite images it looks very warped.
Does anyone know a decent way to stitch multiple images scanning a surface by changing the perspective but not the angle of view? I've only found ways that assume that the perspective remains constant and you are just rotating around that
Alternative to this problem: is it possible to align images using keypoints without warping?
edit: I've got it working now without any distortions but does anyone know a way to merge images while ignoring black? I want to get rid of these black lines beneath the image.
Edit: Problem solved.
python images opencv photo-stitching
python images opencv photo-stitching
edited Jul 6 '18 at 14:34
Arno van der Weijden
asked Jul 5 '18 at 10:26
Arno van der WeijdenArno van der Weijden
11817
11817
Nice job. Have you by chance open sourced the code you have accomplished this with?
– creimers
Jan 7 at 17:09
It's a bit messy but I can give you a copy if you want
– Arno van der Weijden
Jan 7 at 19:52
That would be great. How would you prefer to share the copy?
– creimers
2 days ago
It's messy code but it works....we.tl/t-whtVSIWRFc My boss has the full version as an exe but I can't find the code for it anymore. I simply had opencv create a border around each strip that cut slightly into the image itself and removed everything outside of that. After that I had it overlay the strips and allowed for some manual adjustments (no deformations since that would cause major distortions due to the time difference between measuring each strip)
– Arno van der Weijden
11 hours ago
There are some minor distortions in each strip but they are very minor according to my measurements.
– Arno van der Weijden
11 hours ago
add a comment |
Nice job. Have you by chance open sourced the code you have accomplished this with?
– creimers
Jan 7 at 17:09
It's a bit messy but I can give you a copy if you want
– Arno van der Weijden
Jan 7 at 19:52
That would be great. How would you prefer to share the copy?
– creimers
2 days ago
It's messy code but it works....we.tl/t-whtVSIWRFc My boss has the full version as an exe but I can't find the code for it anymore. I simply had opencv create a border around each strip that cut slightly into the image itself and removed everything outside of that. After that I had it overlay the strips and allowed for some manual adjustments (no deformations since that would cause major distortions due to the time difference between measuring each strip)
– Arno van der Weijden
11 hours ago
There are some minor distortions in each strip but they are very minor according to my measurements.
– Arno van der Weijden
11 hours ago
Nice job. Have you by chance open sourced the code you have accomplished this with?
– creimers
Jan 7 at 17:09
Nice job. Have you by chance open sourced the code you have accomplished this with?
– creimers
Jan 7 at 17:09
It's a bit messy but I can give you a copy if you want
– Arno van der Weijden
Jan 7 at 19:52
It's a bit messy but I can give you a copy if you want
– Arno van der Weijden
Jan 7 at 19:52
That would be great. How would you prefer to share the copy?
– creimers
2 days ago
That would be great. How would you prefer to share the copy?
– creimers
2 days ago
It's messy code but it works....we.tl/t-whtVSIWRFc My boss has the full version as an exe but I can't find the code for it anymore. I simply had opencv create a border around each strip that cut slightly into the image itself and removed everything outside of that. After that I had it overlay the strips and allowed for some manual adjustments (no deformations since that would cause major distortions due to the time difference between measuring each strip)
– Arno van der Weijden
11 hours ago
It's messy code but it works....we.tl/t-whtVSIWRFc My boss has the full version as an exe but I can't find the code for it anymore. I simply had opencv create a border around each strip that cut slightly into the image itself and removed everything outside of that. After that I had it overlay the strips and allowed for some manual adjustments (no deformations since that would cause major distortions due to the time difference between measuring each strip)
– Arno van der Weijden
11 hours ago
There are some minor distortions in each strip but they are very minor according to my measurements.
– Arno van der Weijden
11 hours ago
There are some minor distortions in each strip but they are very minor according to my measurements.
– Arno van der Weijden
11 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1336679%2fstitch-multiple-microscope-images-using-python%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1336679%2fstitch-multiple-microscope-images-using-python%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Nice job. Have you by chance open sourced the code you have accomplished this with?
– creimers
Jan 7 at 17:09
It's a bit messy but I can give you a copy if you want
– Arno van der Weijden
Jan 7 at 19:52
That would be great. How would you prefer to share the copy?
– creimers
2 days ago
It's messy code but it works....we.tl/t-whtVSIWRFc My boss has the full version as an exe but I can't find the code for it anymore. I simply had opencv create a border around each strip that cut slightly into the image itself and removed everything outside of that. After that I had it overlay the strips and allowed for some manual adjustments (no deformations since that would cause major distortions due to the time difference between measuring each strip)
– Arno van der Weijden
11 hours ago
There are some minor distortions in each strip but they are very minor according to my measurements.
– Arno van der Weijden
11 hours ago