MyImage_class.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:DenoiseAverage 作者: Pella86 项目源码 文件源码
def bandpass(self, rin, sin, rout, sout):
        ''' To create a band pass two circle images are created, one inverted
        and pasted into dthe other'''

        # if radius zero dont create the inner circle
        if rin != 0:
            self.create_circle_mask(rin, sin)
        else:
            self.data = np.zeros(self.data.shape)

        # create the outer circle
        bigcircle = deepcopy(self)
        bigcircle.create_circle_mask(rout, sout)
        bigcircle.invert() 

        # sum the two pictures
        m = (self + bigcircle)

        # limit fro 0 to 1 and invert 
        m.limit(1)
        m.invert()  

        self.data = m.data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号