Using a homography matrix and decomposing it to find the orientation of a plane fixed in the centre











up vote
0
down vote

favorite












I currently have two images of a plane in real life from straight above. One to use as a reference image, and another when the plane has undergone a rotation fixed at the centre of the plane thus changing its orientation. The camera stays at a constant position.



I was wondering if I found the homography matrix of this rotation in opencv and then decomposed the homography matrix in order to find the rotation matrix whether this would yield accurate results and I would be able to find the three angles needed to describe the planes rotation in euclidean coordinates to a reasonable degree of accuracy.



Thanks










share|improve this question







New contributor




azz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • do you mean like decomposeHomographyMat function?
    – api55
    Nov 21 at 13:57










  • yes i was just wondering whether that yields in accurate results when used in real life images
    – azz
    Nov 21 at 18:35










  • the accuracy depends more on the homography calculation than the decomposition of it
    – api55
    Nov 21 at 18:42










  • that makes a lot of sense, am i right in assuming then that if i am just changing the orientation of one plane with easy to detect features fixed at the centre the homography calculation can be accurately done using opencv
    – azz
    Nov 21 at 19:31










  • depends on the image, not always is perfect, however if your features are good and numerous you have will get quite accurate results
    – api55
    Nov 21 at 20:11















up vote
0
down vote

favorite












I currently have two images of a plane in real life from straight above. One to use as a reference image, and another when the plane has undergone a rotation fixed at the centre of the plane thus changing its orientation. The camera stays at a constant position.



I was wondering if I found the homography matrix of this rotation in opencv and then decomposed the homography matrix in order to find the rotation matrix whether this would yield accurate results and I would be able to find the three angles needed to describe the planes rotation in euclidean coordinates to a reasonable degree of accuracy.



Thanks










share|improve this question







New contributor




azz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • do you mean like decomposeHomographyMat function?
    – api55
    Nov 21 at 13:57










  • yes i was just wondering whether that yields in accurate results when used in real life images
    – azz
    Nov 21 at 18:35










  • the accuracy depends more on the homography calculation than the decomposition of it
    – api55
    Nov 21 at 18:42










  • that makes a lot of sense, am i right in assuming then that if i am just changing the orientation of one plane with easy to detect features fixed at the centre the homography calculation can be accurately done using opencv
    – azz
    Nov 21 at 19:31










  • depends on the image, not always is perfect, however if your features are good and numerous you have will get quite accurate results
    – api55
    Nov 21 at 20:11













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I currently have two images of a plane in real life from straight above. One to use as a reference image, and another when the plane has undergone a rotation fixed at the centre of the plane thus changing its orientation. The camera stays at a constant position.



I was wondering if I found the homography matrix of this rotation in opencv and then decomposed the homography matrix in order to find the rotation matrix whether this would yield accurate results and I would be able to find the three angles needed to describe the planes rotation in euclidean coordinates to a reasonable degree of accuracy.



Thanks










share|improve this question







New contributor




azz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I currently have two images of a plane in real life from straight above. One to use as a reference image, and another when the plane has undergone a rotation fixed at the centre of the plane thus changing its orientation. The camera stays at a constant position.



I was wondering if I found the homography matrix of this rotation in opencv and then decomposed the homography matrix in order to find the rotation matrix whether this would yield accurate results and I would be able to find the three angles needed to describe the planes rotation in euclidean coordinates to a reasonable degree of accuracy.



Thanks







image opencv homography






share|improve this question







New contributor




azz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




azz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




azz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 21 at 13:14









azz

1




1




New contributor




azz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





azz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






azz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • do you mean like decomposeHomographyMat function?
    – api55
    Nov 21 at 13:57










  • yes i was just wondering whether that yields in accurate results when used in real life images
    – azz
    Nov 21 at 18:35










  • the accuracy depends more on the homography calculation than the decomposition of it
    – api55
    Nov 21 at 18:42










  • that makes a lot of sense, am i right in assuming then that if i am just changing the orientation of one plane with easy to detect features fixed at the centre the homography calculation can be accurately done using opencv
    – azz
    Nov 21 at 19:31










  • depends on the image, not always is perfect, however if your features are good and numerous you have will get quite accurate results
    – api55
    Nov 21 at 20:11


















  • do you mean like decomposeHomographyMat function?
    – api55
    Nov 21 at 13:57










  • yes i was just wondering whether that yields in accurate results when used in real life images
    – azz
    Nov 21 at 18:35










  • the accuracy depends more on the homography calculation than the decomposition of it
    – api55
    Nov 21 at 18:42










  • that makes a lot of sense, am i right in assuming then that if i am just changing the orientation of one plane with easy to detect features fixed at the centre the homography calculation can be accurately done using opencv
    – azz
    Nov 21 at 19:31










  • depends on the image, not always is perfect, however if your features are good and numerous you have will get quite accurate results
    – api55
    Nov 21 at 20:11
















do you mean like decomposeHomographyMat function?
– api55
Nov 21 at 13:57




do you mean like decomposeHomographyMat function?
– api55
Nov 21 at 13:57












yes i was just wondering whether that yields in accurate results when used in real life images
– azz
Nov 21 at 18:35




yes i was just wondering whether that yields in accurate results when used in real life images
– azz
Nov 21 at 18:35












the accuracy depends more on the homography calculation than the decomposition of it
– api55
Nov 21 at 18:42




the accuracy depends more on the homography calculation than the decomposition of it
– api55
Nov 21 at 18:42












that makes a lot of sense, am i right in assuming then that if i am just changing the orientation of one plane with easy to detect features fixed at the centre the homography calculation can be accurately done using opencv
– azz
Nov 21 at 19:31




that makes a lot of sense, am i right in assuming then that if i am just changing the orientation of one plane with easy to detect features fixed at the centre the homography calculation can be accurately done using opencv
– azz
Nov 21 at 19:31












depends on the image, not always is perfect, however if your features are good and numerous you have will get quite accurate results
– api55
Nov 21 at 20:11




depends on the image, not always is perfect, however if your features are good and numerous you have will get quite accurate results
– api55
Nov 21 at 20:11

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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',
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
});


}
});






azz is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53412876%2fusing-a-homography-matrix-and-decomposing-it-to-find-the-orientation-of-a-plane%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








azz is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















azz is a new contributor. Be nice, and check out our Code of Conduct.













azz is a new contributor. Be nice, and check out our Code of Conduct.












azz is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53412876%2fusing-a-homography-matrix-and-decomposing-it-to-find-the-orientation-of-a-plane%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

Calculate evaluation metrics using cross_val_predict sklearn

Insert data from modal to MySQL (multiple modal on website)