how can i write a code
Mostrar comentarios más antiguos
hi,
how can i write code that do this algorithm:
Repeat for α = 0 to 180
Repeat for u = 0 to 255
Repeat for v = 0 to 255
{
ρ= u cos α + v sin α
g(ρ, α) = g(ρ, α) + g(ρ, α) δ(u cos α + v sin α -ρ) }
it's with for loop
2 comentarios
madhan ravi
el 5 de Jul. de 2020
It's not MATLAB ?
shmuel manashirov
el 5 de Jul. de 2020
Respuestas (1)
Sumeet Singh
el 5 de Jul. de 2020
You can try this
for alpha=0:180
for u=0:255
for v=0:255
rho = u*cos(alpha) + v*sin(alpha)
% your code
end
end
end
Create required functions outside the loops or as a separate file and call them where required.
3 comentarios
shmuel manashirov
el 5 de Jul. de 2020
Sumeet Singh
el 5 de Jul. de 2020
Check documentation for creating function. Can you elaborate your problem?
shmuel manashirov
el 5 de Jul. de 2020
Categorías
Más información sobre Image Transforms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!