From: Ja-yun on 28 May 2010 06:48 i want to find the rotation angle of the contents in two template i tried radon transform method, but it doesn't work for fig 1 http://img231.imageshack.us/img231/7269/dogk.png and fig 2 http://img541.imageshack.us/img541/5199/dog90.png instead , it works for fig1 and fig 3 http://img706.imageshack.us/img706/1601/dog45.png , and the angle can be found Is there any way to find a rotation angle between fig1 and fing 2? thanks a million
From: Roger Stafford on 28 May 2010 14:09 "Ja-yun " <silodraw(a)gmail.com> wrote in message <hto714$m3d$1(a)fred.mathworks.com>... > i want to find the rotation angle of the contents in two template > > i tried radon transform method, but it doesn't work for > fig 1 http://img231.imageshack.us/img231/7269/dogk.png > and > fig 2 http://img541.imageshack.us/img541/5199/dog90.png > > instead , it works for fig1 and > fig 3 http://img706.imageshack.us/img706/1601/dog45.png > , and the angle can be found > > Is there any way to find a rotation angle between fig1 and fing 2? thanks a million The radon transform is based on integrating a function along a line until the line finally enters a region where the function remains all zero. Since the white background in a grey level picture is by definition up at some maximum value rather than zero, the line would have to be infinitely long, so your analysis would fail. Just subtract your levels from the maximum background level and perform the radon transform on that. Your success with figure 3 is a strong hint in that direction. Roger Stafford
|
Pages: 1 Prev: Fitting a circle inside a ROI Next: No toolbar menu in Simulink - Ubuntu |