当前位置:网站首页>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边栏推荐
- How jupyter changes the default browser
- Download exclusively | Alibaba cloud maxcompute questions and answers to unlock SaaS mode cloud data warehouse in this electronic manual!
- EasyCVR页面添加Loading加载效果的实现过程
- 【RTOS训练营】环形缓冲区、AT指令、预习安排和晚课提问
- Microwave oven rectifier diode cl01-12
- 代理IP服务器如何保证自身在网络中的信息安全呢
- Unity get the animation being played
- C language_ The use and implementation of string comparison function StrCmp
- 爬虫小操作
- 什么是信息化?什么是数字化?这两者有什么联系和区别?
猜你喜欢

动态IP地址是什么?为什么大家会推荐用动态ip代理?
![[RTOS training camp] ring buffer, at instruction, preview arrangement and evening class questions](/img/cb/de38e9f4186c4392ef8832659422ff.jpg)
[RTOS training camp] ring buffer, at instruction, preview arrangement and evening class questions

web中间件日志分析脚本3.0(shell脚本)

How can I become an irreplaceable programmer?

嵌入式开发:技巧和窍门——设计强大的引导加载程序的7个技巧
![[RTOS training camp] operation explanation, queue and ring buffer, queue - transmission data, queue - synchronization tasks and evening class questions](/img/59/0b671129e8cfaed28e2fe484ae0467.jpg)
[RTOS training camp] operation explanation, queue and ring buffer, queue - transmission data, queue - synchronization tasks and evening class questions

【MATLAB appdesigner】27_ How to debug and view variables in appdesigner? (examples + skills)

Embedded development: tips and tricks -- seven tips for designing powerful boot loader
![[RTOS training camp] review of the previous section, idle tasks, timer tasks, execution sequence, scheduling strategy and evening class questions](/img/f7/3795855c72604f051586cd48e3ab21.jpg)
[RTOS training camp] review of the previous section, idle tasks, timer tasks, execution sequence, scheduling strategy and evening class questions

The ultra comprehensive open source WinForm UI library meets all your desktop development needs!
随机推荐
How to choose social e-commerce model in the early stage? Taishan crowdfunding
Small sample learning data set
动态IP地址是什么?为什么大家会推荐用动态ip代理?
[RTOS training camp] learn C language from a higher perspective
【RTOS训练营】关于上课和答疑
Django数据库增删改查
ZK-Rollups工作原理
Spine_ Adnexal skin
[RTOS training camp] operation explanation, queue and ring buffer, queue - transmission data, queue - synchronization tasks and evening class questions
Regular expression
【RTOS训练营】站在更高的角度学习C语言
jupyter更改主界面并且导入数据集
代理IP服务器如何保证自身在网络中的信息安全呢
开放下载!《阿里巴巴 DevOps 实践手册》
旅行+战略加速落地 捷途新产品矩阵曝光
《nlp入门+实战:第三章:梯度下降和反向传播 》
The application and principle of changing IP software are very wide. Four methods of dynamic IP replacement are used to protect network privacy
We have no way out
Unity get the animation being played
The task will be launched before the joint commissioning of development