필터 지우기
필터 지우기

How to extract the features of an image frame and obtain the feature vector?

조회 수: 6 (최근 30일)
Hi, I am doing my final year B.Tech project on abnormality activity detection in video using MATLAB. I wanted to know how to extract features from all the video frames and make a feature vector. Can anyone please help?
Thank You.

채택된 답변

Walter Roberson
Walter Roberson 2016년 2월 12일
npix = 20;
nframe = 50;
FF = read first frame
N = numel(FF);
featidx = randperm(N, npix); %that is, 20 random indices for the image array
FV(:,1) = FF(featidx);
for framenum = 2 : nframe
FF = read frame #framenum
FV(:,framenum) = FF(featidx);
end
You now have a feature vector for each frame; FV will be npix by nframe with the feature vector for each frame going down the columns.
You might be thinking, 'Randomly selected pixels can't be a feature!!", but that would be incorrect. Every deterministic numeric function applied to the data matrix can be a feature. Taking the log of the average hue can be a feature. Taking the maximum intensity of the Green channel can be a feature. The function just has to be consistent about what it does.
The trick with image analysis is not extracting features: it is know what features to extract. And there is no one answer for that: features that are useful in one situation might be meaningless in another situation.
It is very common to extract a bunch of different features for each image, and then to do "feature selection", which is a process of figuring out which of the features is most useful in distinguishing between the various classes of data. It even turns out that random selection can be important ("compressive sensing") so do not dismiss it out of hand.
  댓글 수: 17
Walter Roberson
Walter Roberson 2017년 2월 17일
If the camera gives temperature values, then you should be working with those rather than with the pseudocolored images. But you wrote "Just getting thermal maps, one can't see temperature and difference is not known." which implies you cannot get to the temperature values ??
If you had a situation where any one kind of component had the same temperature profile, then you could do template matching. However I do not expect that to be the case -- I would expect that the temperature profile of any one kind of component would depend on what it was being used for in the circuit.
Image Analyst
Image Analyst 2017년 2월 17일
I believe you'd have to have a tremendous amount of visible light ("illumination") to affect the temperature of an item. The sun has lots of infrared in it. If you filter out the infrared irradiance with an IR-cutoff filter, and just allow through illuminance (visible light), I doubt it would heat the sample even with 50,000 Lux (100 times office brightness). I know often a layman's inaccurate definition of illuminance includes all irradiance, not just visible light and including infrared, but my optics professor in grad school was a stickler for us using proper terms and units. He even published a paper on it (see attached paper).

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by