explaination about code line detection

2 次查看(过去 30 天)
hello... can everyone explain to me about codes below... thanks alot
theta = -90:89;
[R,xp] = radon(binaryImage,theta);
[R1,r_max] = max(R);
theta_max = 90;
while(theta_max > 50 || theta_max<-50)
[R2,theta_max] = max(R1);
R1(theta_max) = 0;
theta_max = theta_max - 91;
  2 个评论
Jan
Jan 2012-3-6
What do you want to be explained? Do you understand how to create a vector using "a:b"? Or are you asking about the function "radon"? Please be more specific to allow for an efficient answer.
mohd
mohd 2012-3-7
i want to know about the function radon in my code.

请先登录,再进行评论。

采纳的回答

Thomas
Thomas 2012-3-7
doc radon
Radon
Radon transform Syntax
R = radon(I, theta) [R,xp] = radon(...)
Description
R = radon(I, theta) returns the Radon transform R of the intensity image I for the angle theta degrees.
The Radon transform is the projection of the image intensity along a radial line oriented at a specific angle. If theta is a scalar, R is a column vector containing the Radon transform for theta degrees. If theta is a vector, R is a matrix in which each column is the Radon transform for one of the angles in theta. If you omit theta, it defaults to 0:179.
[R,xp] = radon(...) returns a vector xp containing the radial coordinates corresponding to each row of R.
The radial coordinates returned in xp are the values along the x'-axis, which is oriented at theta degrees counterclockwise from the x-axis. The origin of both axes is the center pixel of the image, which is defined as floor((size(I)+1)/2)
For example, in a 20-by-30 image, the center pixel is (10,15

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Feature Detection and Extraction 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by