当前位置:网站首页>Centrosymmetric binary mode cslbp, matlab
Centrosymmetric binary mode cslbp, matlab
2022-07-26 01:02:00 【Vertira】
Centrosymmetric binary mode CSLBP,matlab
Go straight to the code
function h = CSLBP(I)
%% this function takes patch or image as input and return Histogram of
%% CSLBP operator.
h=zeros(16,1);
[y x]=size(I);
T = 0.1; % threshold given by authors in their paper
for i=2:y-1
for j=2:x-1
% keeping I(j,i) as center we compute CSLBP
% N0 - N4
a = ((I(i,j+1) - I(i, j-1) > T ) * 2^0 );
b = ((I(i+1,j+1) - I(i-1, j-1) > T ) * 2^1 );
c = ((I(i+1,j) - I(i-1, j) > T ) * 2^2 );
d = ((I(i+1,j-1) - I(i - 1, j + 1) > T ) * 2^3 );
e=a+b+c+d;
h(e+1) = h(e+1) + 1;
end
end边栏推荐
- 数据写入excel并填充颜色
- 开放下载!《阿里巴巴 DevOps 实践手册》
- Open download! Alibaba Devops Practice Manual
- Talk about "people" in the R & D team
- MMOCR使用指南
- Distributed transaction and at mode principle of Seata
- [install software after computer reset] software that can search all files of the computer, the best screenshot software in the world, free music player, JDK installation, MySQL installation, installa
- 如何才能修炼成一名不可替代的程序员?
- 109. Upload local files using SAP ui5 fileuploader control
- C language_ The use and implementation of string comparison function StrCmp
猜你喜欢

【RTOS训练营】GPIO知识和预习安排 + 晚课提问

EasyCVR页面添加Loading加载效果的实现过程

200 yuan a hair dryer, only a week, to achieve 2million?

Implementation process of adding loading effect to easycvr page

The difference and application of in and exists in SQL statement

【秒杀概念】大小端

Embedded development: tips and tricks -- seven tips for designing powerful boot loader
![[laser principle and application -3]: foreign brands of lasers](/img/8a/620544bb52c6b8c4db83f9a14783bb.png)
[laser principle and application -3]: foreign brands of lasers

Inverse matrix block matrix

【RTOS训练营】I2C和UART知识和预习安排 + 晚课提问
随机推荐
Amin's confession
Subarray with 19 and K
The difference between TCP and UDP
jupyter更改默认浏览器的方法
Lock upgrade: no lock, bias lock, lightweight lock, heavyweight lock
How can MySQL just duplicate data?
我们没有退路了
【软件开发规范二】《禁止项开发规范》
ASP.NET Core配置
985 associate professors in Colleges and universities sun their annual salary, and the provident fund tops the monthly salary of ordinary people. Netizen: it is worthy of being in Shanghai
Rotate the minimum number of the array
How can I become an irreplaceable programmer?
Django数据库增删改查
【RTOS训练营】程序框架、预习、课后作业和晚课提问
Zabbix监控主机及资源告警
聊聊研发团队中的“人”
[RTOS training camp] I2C and UART knowledge and preview arrangement + evening class questions
Talk about "people" in the R & D team
The application and principle of changing IP software are very wide. Four methods of dynamic IP replacement are used to protect network privacy
开放下载!《阿里巴巴 DevOps 实践手册》