当前位置:网站首页>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边栏推荐
- Optimization of tableview
- Crawler small operation
- Implementation process of adding loading effect to easycvr page
- [plaything determination scratch children programming] ride a small motorcycle (dynamic background + camera control operation)
- El table scroll bar settings
- 【RTOS训练营】站在更高的角度学习C语言
- Jupyter changes the main interface and imports the dataset
- IP地址能精确到哪步?动态IP及静态IP是什么?切换IP最常用的方法
- Unityvr -- robot arm scene 4- gifts and Christmas tree
- The application and principle of changing IP software are very wide. Four methods of dynamic IP replacement are used to protect network privacy
猜你喜欢

Tensorflow 2 detailed explanation (TF ecosystem, installation, housekeeping, basic operation)

AI knows everything: build and deploy sign language recognition system from 0
![[RTOS training camp] learn C language from a higher perspective](/img/4c/bbbec489abb781a1de1e99bbf12c6f.png)
[RTOS training camp] learn C language from a higher perspective

嵌入式开发:技巧和窍门——设计强大的引导加载程序的7个技巧

109. 使用 SAP UI5 FileUploader 控件上传本地文件

How does the proxy IP server ensure its information security in the network
![[plaything determination scratch children programming] ride a small motorcycle (dynamic background + camera control operation)](/img/35/5fe27d3f61b41bf4b9434cd4d7d1b1.png)
[plaything determination scratch children programming] ride a small motorcycle (dynamic background + camera control operation)

User defined variables and extracted public variables of JMeter

【RTOS训练营】设备子系统、晚课学员提问
![[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
随机推荐
Zabbix监控主机及资源告警
游戏思考17:寻路引擎recast和detour学习二:recast导航网格生成流程及局限性
Save unhappiness! My robot psychologist; KPI tracking of machine learning; Pytorch implementation of Yolo V7; Li Hang's new book "machine learning methods" open trial | showmeai Information Daily
《自然语言处理实战入门》深度学习基础 ---- attention 注意力机制 ,Transformer 深度解析与学习材料汇总
Gcdqueue encapsulation
Win11打不开自带杀毒软件怎么办?win11自带杀毒功能打不开
How to copy and paste QT? (QClipboard)
Inverse matrix block matrix
Talk about "people" in the R & D team
Mmocr usage guide
Django database addition, deletion, modification and query
【RTOS训练营】I2C和UART知识和预习安排 + 晚课提问
我们没有退路了
109. 使用 SAP UI5 FileUploader 控件上传本地文件
109. Upload local files using SAP ui5 fileuploader control
[Code] refers to the repeated number in the offer 03 array
How jupyter changes the default browser
【RTOS训练营】晚课学员问题
【RTOS训练营】程序框架、预习、课后作业和晚课提问
Upload local file trial version using SAP ui5 fileuploader control