I'm trying to complete a code that I started on. I have an .bmp image that I transferred into a thermal image.
I also changed the orientation of the output into a r and theta from the central point of the picture.
What I am trying to do is take in the thermal, r, and theta information and output the r and theta values of the highest thermal signatures in the whole picture.
Does anyone know how to execute this?
clc
close all
clear all
[img,cmap] = imread('test_thermal.bmp');
img = img(:,:,1);
[ny,nx] = size(img)
% Since there are an even number of rows and columns
y1d = -ny/2 + 1/2:- 1/2 + ny/2
x1d = -nx/2 + 1/2:- 1/2 + nx/2
[X2D,Y2D] = meshgrid(x1d,y1d);
figure()
imagesc(x1d,y1d,img);
[theta2D, radius2D] = cart2pol(X2D,Y2D);
theta2Ddeg = rad2deg(theta2D);