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] ㅁ ×
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
Related questions
Question
I need help in the following MATLAB code. How do I add the code to answer the following question "Do you find more object detections in the image than the one that is cropped out? Explain how you would discriminate that from a dead pixel, a hot pixel, or a cosmic ray event."
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)
hold on
plot(centroid_y, centroid_x, 'r+', 'MarkerSize', 10, 'LineWidth', 2);
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')
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY