![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
图像处理
jinzong53
这个作者很懒,什么都没留下…
展开
-
matlab获取ROI区域
im 是 灰度图function [imR,imRR] = getROI(im,x,y,height,width)%you can use this function to get a ROI%and this x+width must smaller then your pic width.%im's model is gray %imR is the oringal%imRR's model is grayimRR = im(x:x+width,y:y+height);imR = im原创 2021-04-17 10:37:53 · 1674 阅读 · 0 评论 -
给图像添加伪影
在写论文的过程中遇到需要为图像添加伪影,找不到现有的方法于是自己写了matlab代码参数都在代码里面进行了说明function [fin] =getEll(im,a,b,px,py,value,range) % im:function just aplly his scale % a: Major axis of ellipse% b: Minor axis of ellipse% px: the centerX% py: the centerY% value: gray value% r原创 2021-04-02 18:20:10 · 972 阅读 · 0 评论