2019 ICIP之多光谱行人检测:UNPAIRED CROSS-SPECTRAL PEDESTRIAN DETECTION VIA ADVERSARIAL FEATURE LEARNING

UNPAIRED CROSS-SPECTRAL PEDESTRIAN DETECTION VIA ADVERSARIAL FEATURE LEARNING

当前的问题及概述
本文提出的框架采用行人检测网络和区域生成的对抗网络,能够生成互补的跨光谱行人特征。本文多光谱行人检测的说明:
在这里插入图片描述
模型及loss
在这里插入图片描述
本文提出的跨模态行人检测框架。使用两个交叉光谱嵌入网络将每个光谱图像编码到公共空间中。为了对RGB和IR输入的互补信息进行编码,我们对每个与行人相关的感兴趣区域R (ROI)使用两个鉴别器,进一步应用了跨模态域适应方案。AC和AT分别为color image和thermal image的feature。
2.1Unified Detection Network
这个部分迁移Focal loss for dense object detection一文中的RetinaNet architecture进行分类和回归任务,其中分类loss采用focal loss:
在这里插入图片描述
回归loss采用smooth l1 loss

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
这篇文献提出了一种改进的局部纹理描述符,可以用于图像分割。下面是用Python实现该算法的基本步骤: 1. 导入必要的库 ``` import cv2 import numpy as np from scipy.stats import skew, kurtosis ``` 2. 定义函数来计算图像的标准差、偏度和峰度 ``` def compute_statistics(image): std_dev = np.std(image) skewness = skew(image.reshape(-1)) kurt = kurtosis(image.reshape(-1)) return std_dev, skewness, kurt ``` 3. 定义函数来计算局部纹理描述符 ``` def compute_lbp_feature(image, radius, neighbors): lbp = np.zeros_like(image) for i in range(neighbors): x = radius * np.cos(2 * np.pi * i / neighbors) y = -radius * np.sin(2 * np.pi * i / neighbors) x = int(round(x)) y = int(round(y)) lbp += (image > np.roll(image, -y, axis=0) - x) * (2 ** i) hist = np.histogram(lbp, bins=range(2 ** neighbors + 1))[0].astype('float32') hist /= sum(hist) return hist ``` 4. 定义函数来计算每个像素的局部纹理描述符 ``` def compute_local_texture_descriptor(image, radius, neighbors): pad_image = cv2.copyMakeBorder(image, radius, radius, radius, radius, cv2.BORDER_REPLICATE) descriptor = np.zeros_like(image, dtype=np.float32) for i in range(radius, pad_image.shape[0] - radius): for j in range(radius, pad_image.shape[1] - radius): patch = pad_image[i-radius:i+radius+1, j-radius:j+radius+1] std_dev, skewness, kurt = compute_statistics(patch) lbp_feature = compute_lbp_feature(patch, radius, neighbors) descriptor[i-radius, j-radius] = np.concatenate(([std_dev, skewness, kurt], lbp_feature)) return descriptor ``` 5. 加载图像并应用局部纹理描述符 ``` image = cv2.imread('image.jpg', cv2.IMREAD_GRAYSCALE) descriptor = compute_local_texture_descriptor(image, radius=3, neighbors=8) ``` 在这个例子中,使用半径为3的LBP算子计算每个像素的局部纹理描述符。可以根据具体应用场景调整参数。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值