Figure 1 File Edit View Insert Tools Desktop Window Help - ㅁ Raw image cropped image Matched Stars Cropped image of 29486 10 15 30 35 40 45 50522222 48 y [px] 50 10 20 20 40 40 30 50 x [px] 50 50 60 Figure 1 File Edit View Insert Tools Desktop Window Help Raw image cropped image Matched Stars y [px] 500 1000 1500 2000 2500 3000 3500 4000 Raw image of 29486 I 500 1000 1500 2000 2500 3000 3500 4000 x [px] ㅁ ×

Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
icon
Related questions
Question

I need help in my MATLAB code. The following code gives me the plot in the image. How do I answer the question "Running the program the region around the object detection is cropped out. Estimate the background in that region."

 

% Constants
 
MU_E = 398600.4418; %[km3 s-2], gravitational parameter
R_E = 6378.137; %[km] mean earth radius
omega_E = [0;0;7.2921150e-5]; %[rad s-1] rotation rate of Earth
 
% Telescope information:
lat = 32.903342; %[deg] site latitude
lon = -105.529344; %[deg] site longitude
alt = 2.225; %[km] site altitude above sea level
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Load a FITS image
 
fname = '00095337.fit';
fInfo = fitsinfo(fname);
img = fitsread(fname);
 
% Crop the image to show just the object:
img_cropped = img(1980:2030,1720:1780);
 
% Load the labeled image
img_labeled = imread('00095337_labeled_stars.png');
img_labeled = img_labeled(102:863,605:1363,:);
 
% Get rid of "hot" pixels (cosmic rays, disfunctional pixels)
max_acceptable_value = 1300;
img(img>max_acceptable_value) = max_acceptable_value;
 
 
% Plot the images
f1 = figure();
tgroup1 = uitabgroup('Parent',f1);
tab(1) = uitab('Parent', tgroup1, 'Title', 'Raw image');
ax(1) = axes('parent',tab(1));
imagesc(img)
axis equal
axis([0,size(img,2),0,size(img,1)]+0.5)
colormap(gray(256));
xlabel('x [px]')
ylabel('y [px]')
title('Raw image of 29486')
 
tab(2) = uitab('Parent', tgroup1, 'Title', 'cropped image');
ax(2) = axes('parent',tab(2));
imagesc(img_cropped)
axis equal
axis([0,size(img_cropped,2),0,size(img_cropped,1)]+0.5)
colormap(gray(256));
xlabel('x [px]')
ylabel('y [px]')
title('Cropped image of 29486')
Figure 1
File Edit View Insert Tools Desktop Window Help
-
ㅁ
Raw image cropped image Matched Stars
Cropped image of 29486
10
15
30
35
40
45
50522222 48
y [px]
50
10
20
20
40
40
30
50
x [px]
50
50
60
Transcribed Image Text:Figure 1 File Edit View Insert Tools Desktop Window Help - ㅁ Raw image cropped image Matched Stars Cropped image of 29486 10 15 30 35 40 45 50522222 48 y [px] 50 10 20 20 40 40 30 50 x [px] 50 50 60
Figure 1
File Edit View Insert Tools Desktop Window Help
Raw image cropped image Matched Stars
y [px]
500
1000
1500
2000
2500
3000
3500
4000
Raw image of 29486
I
500 1000 1500 2000 2500 3000 3500 4000
x [px]
ㅁ
×
Transcribed Image Text:Figure 1 File Edit View Insert Tools Desktop Window Help Raw image cropped image Matched Stars y [px] 500 1000 1500 2000 2500 3000 3500 4000 Raw image of 29486 I 500 1000 1500 2000 2500 3000 3500 4000 x [px] ㅁ ×
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY