thermal images processing || Need help! :)
Show older comments
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
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
Image Analyst
on 30 May 2013
0 votes
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.
6 Comments
Image Analyst
on 30 May 2013
You have to call the colormap() function to apply it.
% Create the colormap.
cmap = gray(256);
% Make it red after gray level 200:
cmap(201:end, 1) = 1;
cmap(201:end, 2) = 0;
cmap(201:end, 3) = 0;
% Apply the colormap.
colormap(cmap);
Hszcz
on 31 May 2013
Image Analyst
on 31 May 2013
That's an indexed image that's been made into an RGB image. The relationship between temperature and gray level has been lost unless you want to examine the colormap, which is a real pain. Ask them to give you the same image with a grayscale colormap. Otherwise you're in for a lot of work. You CAN'T just convert to gray like you did and expect that you'll get any meaningful temperatures - you'd need to examine the colorbar like I said..
Julie Ann Serrano
on 5 Oct 2016
Hi. Can you guys help me? What we're going to do is to capture the thermal image of a plant and relate the temperature to its water status. My first concern: Can you give me some recommendations on how can I measure the temperature of the plant itself using the Grayscale of the thermal image?By using Matlab? What exactly are the considerations and parameters involved? I heard there has supposed to be some sort of mapping. I can't fully understand. Can you pls explain this to me? Your answer will be very much appreciated. Thank you so much. :)
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.
suki
on 25 Aug 2014
0 votes
hey... am doing project on thermal image processing.... for medical images i need to how to write coding from dat image.. thank u
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!