thermal images processing || Need help! :)

3 views (last 30 days)
Hszcz on 28 May 2013
Commented: Image Analyst on 6 Oct 2016
Hello, recently struggling with a problem that concerns the thermal images which are visualized tumors. Now, I would like to somehow show the images only place showing the changes that are characterized by an intense red color (the higher the temperature the more "intense red" point image). I would like to make it look like so that they retain their spot color intensity, while the rest of the image that has been turned into gray. Another idea is a thresholding the image to show me the "white" such sites, and only those (thresholding of the appropriate range?), Then the program consisted of areas of that field. Welcome suggestions as to the algorithm itself, as well as to use a feature, and a great pleasure to accept some pieces of code :) For any help in advance thank you very much.

Answers (3)

Matt Kindig
Matt Kindig on 28 May 2013
Edited: Matt Kindig on 28 May 2013
Here's an example of an approach that might work:
X= imread('coins.png'); %sample indexed image
BW = (X > 100); %convert to black/white
L = bwlabel(BW); %segment image
Mask = (L==2); %isolate one coin
RGB = ind2rgb(X, jet(256)); %convert to RGB image
RGB = int8(255*RGB);
Gray = ind2gray(X, gray(256)); %convert to grayscale image
Gray = cat(3, Gray, Gray, Gray);
[ii,jj] = ind2sub( size(Mask), find(Mask));
kk = repmat(1:3, size(ii));
kk = sub2ind( size(RGB), repmat(ii,3,1), repmat(jj,3,1), kk(:)); %get indices of RGB image
Gray(kk) = RGB(kk); %assign pixels in mask to RGB
imshow(Gray); %one coin in color, all else in grayscale
  1 Comment
Hszcz on 30 May 2013
Hi! Thanks for your response. I tried used this code to my images but i can`t extract area of the more intensive red colour on my picture. Could you also help me in this matter?

Sign in to comment.

Image Analyst
Image Analyst on 30 May 2013
Do you have access to the original data? Or are you stuck with the pseudocolored version? If you have the original data, which you should have, then just change the colormap. If you're stuck with the pseudocolored version, contact your source and tell them you don't want or need that processed image and to give you the original image.
Image Analyst
Image Analyst on 6 Oct 2016
I assume you're doing it assuming evaporative cooling. You'll need to make a calibration standard by measuring plants of known water content at standardized temperature and humidity conditions and build a model, essentially a curve of water vs. gray level.

Sign in to comment.

ammu on 25 Aug 2014
hey... am doing project on thermal image processing.... for medical images i need to how to write coding from dat image.. thank u

Community Treasure Hunt

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

Start Hunting!