Background subtraction from the thermal images.

8 ビュー (過去 30 日間)
vps
vps 2016 年 11 月 22 日
コメント済み: vps 2016 年 11 月 22 日
Hi...Please find the attached the image. I want the image of person only. Can you please suggest me that how to subtract background from the images? Thank you.
  3 件のコメント
vps
vps 2016 年 11 月 22 日
編集済み: vps 2016 年 11 月 22 日
Hi.. Please consider this image.
KSSV
KSSV 2016 年 11 月 22 日
編集済み: KSSV 2016 年 11 月 22 日
You try the code given at bottom.. try mask = v > 0.7;

サインインしてコメントする。

採用された回答

KSSV
KSSV 2016 年 11 月 22 日
clc; clear all ;
rgbImage = imread('your image');
figure ; imshow(rgbImage);
% Convert RGB image into HSV color space.
hsvImage = rgb2hsv(rgbImage);
% Extract individual H, S, and V images.
h = hsvImage(:,:, 1);
s = hsvImage(:,:, 2);
v = hsvImage(:,:, 3);
% Threshold to find vivid colors.
mask = v < 0.3;
% Make image white in mask areas:
h(mask) = 0;
s(mask) = 0;
v(mask) = 1;
% Convert back to RGB
hsvImage = cat(3, h, s, v);
newRGB = hsv2rgb(hsvImage);
imshow(newRGB)
  1 件のコメント
vps
vps 2016 年 11 月 22 日
Thanks a lot!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by