[SOLVED] 代写 code written by Xiaokun Hu

30 $

File Name: 代写__code_written_by_Xiaokun_Hu.zip
File Size: 320.28 KB

SKU: 5539886734 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


code written by Xiaokun Hu

im1imreadplanes1.jpg;
subplot4,1,1;
imagescim1;
axis off;
titleplanes1;
code to plot the first image

im2imreadplanes2.jpg;
subplot4,1,2;
imagescim2;
axis off;
titleplanes2;
code to plot the second image

imdiffim1im2;
subplot4,1,3;
imagescimdiff;
axis off;
titledifference of the two plots;
code find the difference between the two image and plot the difference

Amaxmaximdiff; find the max value in the imdiff
BimdiffA;use a logic array return a 1 at the location of the max value
maxlocationfindB;find function give the location of the max value in linear indices

hold on
i,jind2subsizeimdiff,maxlocation; ind2sub give the row and column of the location of the max value
plotj,i,.r;i, j are row and column, so j is actually x index and i is y index, and plot the point.
textj,i,max,color,red;use index i and j, and add text to it.
hold off

threshold320A;
thresholdedimimdiffthreshold;
subplot4,1,4;
imagescthresholdedim;
axis off
titleDifferencethreshold

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 代写 code written by Xiaokun Hu
30 $