没有合适的资源?快使用搜索试试~ 我知道了~
radon c语言 带注释
4星 · 超过85%的资源 需积分: 10 87 下载量 150 浏览量
2014-05-15
16:49:23
上传
评论 1
收藏 51KB DOC 举报
温馨提示
试读
7页
radon c语言 带注释,里面有详细的注释,可以看懂,之前的都是没有注释的,但愿对大家有用!!
资源推荐
资源详情
资源评论
1. /*Copyright1993-2003TheMathWorks,Inc.*/
2. /*$Revision:1.13.4.3$$Date:2003/08/0118:11:24$*/
3. /*
4. *RADONC.C.MEXfile
5. *ImplementsRadontransform.
6. *Syntax[P,r]=radon(I,theta)
7. *evaluatestheRadontransformP,ofIalongtheanglesspecifiedbythevectorTHETA
. THETAvaluesmeasureanglecounter-clockwisefromthehorizontalaxis.
8. *THETAdefaultsto[0:179]ifnotspecified.
9. *Theoutputargumentrisavectorgivingthevaluesofrcorrespondingtotherowsof
10. *TheoriginofIiscomputedinthesamewayasoriginsarecomputedinfilter2:theori
ginistheimagecenterroundedtotheupperleft.
11. *Algorithm
12. *TheRadontransformofapoint-massisknown,andtheRadontransformislinear(alth
oughnotshift-invariant).SoweusesuperpositionoftheRadontransformsofeachim
agepixel.Thedispersionofeachpixel(pointmass)alongther-axisisanonlinearfunct
ionofthetaandthepixellocation,sotoimprovetheaccuracy,wedivideeachpixelint
o4submasseslocatedtotheNE,NW,SE,andSWoftheoriginallocation.Spacingof
thesubmassesis0.5inthex-andy-directions.Wealsosmooththeresultinther-
directionbyatriangularsmoothingwindowoflength2.
13. *Reference
14. *RonaldN.Bracewell,Two-DimensionalImaging,Prentice-Hall,
15. *1995,pp.518-525.
16. *S.Eddins1-95
17. */
18.
19. #include<math.h>
20. #include"mex.h"
21.
22. staticvoidradon(double*pPtr,double*iPtr,double*thetaPtr,intM,intN,
23. intxOrigin,intyOrigin,intnumAngles,intrFirst,
24. intrSize);
25.
26. staticcharrcs_id[]="$Revision:1.13.4.3$";
27.
28. #defineMAXX(x,y)((x)>(y)?(x):(y))
29.
30. /*InputArguments*/
31. #defineI(prhs[0])
32. #defineTHETA(prhs[1])
33. #defineOPTION(prhs[2])
34.
35. /*OutputArguments*/
36. #defineP(plhs[0])
资源评论
- ZHUQIBING2015-03-13就是MATLAB自己的radon C mex,不能直接在C语言里使用的
- StudyC语言2015-04-13表示一个初学者不太容易看懂
- hanliliy2019-12-09就是matlab里在C转换,不能直接在C里面用,和一个博客分享在一样,感觉不值这个分
- ForrestC2014-10-21没怎么看懂呀!!
renruobing
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功