Halcon算子

1、texture_laws (Operator)

      算子:texture_laws(Image : ImageTexture : FilterTypes, Shift, FilterSize : )

      描述:texture_laws 算子时根据 Laws 的论文 Textured image segmentation提出的一种纹理转换的方法定义的一个算子。通过使用特殊的滤波器和图像进行卷积。滤波器的大小只有3*3、5*5、7*7 三种,如下所示

9 different 3×3 matrices obtainable from the following three vectors:

    l      =       [  1     2       1  ],
    e      =       [ -1     0       1  ],
    s      =       [ -1     2      -1  ]
25 different 5×5 matrices obtainable from the following five vectors:
    l      =       [  1     4       6       4       1 ],
    e      =       [ -1    -2       0       2       1 ],
    s      =       [ -1     0       2       0      -1 ],
    w      =       [ -1     2       0      -2       1 ]
    r      =       [  1    -4       6      -4       1 ],
49 different 7×7 matrices obtainable from the following seven vectors:
    l      =       [  1     6      15      20      15      6      1  ],
    e      =       [ -1    -4      -5       0       5      4      1  ],
    s      =       [ -1    -2       1       4       1     -2     -1  ],
    w      =       [ -1     0       3       0      -3      0      1  ],
    r      =       [  1    -2      -1       4      -1     -2      1  ],
    u      =       [  1    -4       5       0      -5      4     -1  ]
    o      =       [ -1     6     -15      20     -15      6     -1  ]

       这些滤波器的名字为: “level,” “edge,” “spot,” “wave,” “ripple,” “undulation,” and “oscillation.”

        对于大多数的滤波器,其得到灰度值会使用“Shift”调整,这也就使得输出图像会有不同的纹理,相互之间的对比度更高,以使用户选择更加适合的滤波器。

参数:

        Image (input_object)  
        ImageTexture (output_object)  
        FilterTypes (input_control) 
                Desired filter.
                Default value: 'el'
                Suggested values: 'll', 'le', 'ls', 'lw', 'lr', 'lu', 'lo', 'el', 'ee', 'es', 'ew', 'er', 'eu', 'eo', 'sl', 'se', 'ss', 'sw', 'sr', 'su', 'so', 'wl', 'we', 'ws',                     'ww', 'wr', 'wu', 'wo', 'rl', 're', 'rs', 'rw', 'rr', 'ru', 'ro', 'ul', 'ue', 'us', 'uw', 'ur', 'uu', 'uo', 'ol', 'oe', 'os', 'ow', 'or', 'ou', 'oo'
Shift (input_control)  integer → (integer)
                Shift to reduce the gray value dynamics.(偏移量用来动态的减去灰度值)
                Default value: 2
                List of values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
FilterSize (input_control)  integer → (integer)
                 Size of the filter kernel.
                 Default value: 5
                 List of values: 3, 5, 7

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值