Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

红外图像或者灰度图像的识别 #120

Open
qqqe2 opened this issue May 1, 2024 · 1 comment
Open

红外图像或者灰度图像的识别 #120

qqqe2 opened this issue May 1, 2024 · 1 comment

Comments

@qqqe2
Copy link

qqqe2 commented May 1, 2024

红外图像或者灰度图像的识别需要更改这里的函数吗?
resizeDevice(m_param.batch_size, m_input_src_device, m_param.src_w, m_param.src_h,
m_input_resize_device, m_param.dst_w, m_param.dst_h, 114, m_dst2src);

bgr2rgbDevice(m_param.batch_size, m_input_resize_device, m_param.dst_w, m_param.dst_h,
    m_input_rgb_device, m_param.dst_w, m_param.dst_h);
normDevice(m_param.batch_size, m_input_rgb_device, m_param.dst_w, m_param.dst_h,
    m_input_norm_device, m_param.dst_w, m_param.dst_h, m_param);
hwc2chwDevice(m_param.batch_size, m_input_norm_device, m_param.dst_w, m_param.dst_h,
    m_input_hwc_device, m_param.dst_w, m_param.dst_h);
@FeiYull
Copy link
Owner

FeiYull commented May 16, 2024

@qqqe2 如果你的图像是类似灰度图的单通道图像,此时是不用的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants