Path: news.mathworks.com!not-for-mail From: "khoo" <jim_khoo@hotmail.com> Newsgroups: comp.soft-sys.matlab Subject: Re: How to calculate the angle between two images? Date: Sun, 5 Apr 2009 17:59:01 +0000 (UTC) Organization: haha Lines: 11 Message-ID: <grarh5$n7v$1@fred.mathworks.com> References: <gr4ten$oks$1@fred.mathworks.com> <gr4u55$add$1@fred.mathworks.com> <gr4v19$60a$1@fred.mathworks.com> <gr82h2$d9h$1@fred.mathworks.com> <gr86ie$m8l$1@fred.mathworks.com> <gr96k1$cgv$1@fred.mathworks.com> <gra0s1$7d0$1@fred.mathworks.com> <gra1tq$a1t$1@fred.mathworks.com> <grad5q$cai$1@fred.mathworks.com> <graed8$ope$1@fred.mathworks.com> Reply-To: "khoo" <jim_khoo@hotmail.com> NNTP-Posting-Host: webapp-03-blr.mathworks.com Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Trace: fred.mathworks.com 1238954341 23807 172.30.248.38 (5 Apr 2009 17:59:01 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Sun, 5 Apr 2009 17:59:01 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 1113304 Xref: news.mathworks.com comp.soft-sys.matlab:530501 > Why on earth are you trying to convert an image into a 1 dimensional vector? you are correlating 2 histograms - histograms are essentially graphs - in your case angle along the x axis, number of pixels of that angle in y direction. If you have say 256 angles, then each bin represents (2*pi)/256 radians. Thus the histogram will be a vector of 256 numbers, each number representing the number of pixels of that angle. > > I suggest you carefully read help hist(), doesn't that default to 10 bins - you will need to have much better resolution than that. > > I have had a look at your images, and would have thought they were ideally suited to this methodology. > > Regards > > Dave Robinson bro Dave, i no understand what you explain..can u explain in more detail??i get the angle is very large..is around 250k..how can like that?? how i need to take the the max angle rotation from the corr graph??