Boost Your Final Grades By Ordering Custom Writing Help!

For similar papers and sample answers; with a few clicks, Order your research paper, thesis, dissertation writing and other assignment help services

Posted: September 9th, 2022

[1] Compute Histogram for image recognition (50pts)
Data set: the NWPU aerial data set contains approximately 45 categories of 700 images for each category in 256×256 RGB format. The data set can be downloaded from:
https://umkc.box.com/s/fxvzh5qq2tiob6eklfxfwn89kg3e1io1

For HW-1, let us just take the first 15 classes (shown above) {airplane, airport, bridge, …, freeway} from the full data set, and 40 images per class and form a data set of N=600 images with 15 labels. Objectives are,
a) compute a HSV Kmeans model with total number of entry K=[64, 128] implementing in matlab (or python) and show your code and results [15pts]
function [color_table]=getHSVColorTable(im_path, K)

….
return;

b) for each image compute a color histogram, implement the following function in matlab or python with both an Euclidean distance and KL distance (also known as cross entropy) metrics (optional for 10pts extra credits) [15pts]
function [h]=getHSVHist(im, color_table, opt)
im = rgb2hsv(im); [ht,wid,~]=size(im);
If opt == ‘euc’ % euclidean distance
dist = pdist2(color_table, reshape(im, [ht*wid, 3]));
elseif opt =’kld’ % KL distance

end
….
return;

c) Image Recognition Experiment: Use this HSV histogram feature to represent images, you will have a NxK data matrix, for N=15*40, and K =[64, 128]. Split the data set into training and leave 1 out testing, and conduct classification using knnclassify(). [20pts]
% load hsv features N x K
load hsv_hist64.mat; % 400×64
size(hsv_hist)
test_set=[1:10]; train_set=[11:40];
n_class=15; n_img=40;
for k=1:n_class
offs=(k-1)*n_img;
% test: offs+ test_set, training: all samples minus test set
rec_label = knnclassify(hsv_hist(offs+test_set,:), hsv_hist(setdiff(offs+test_set, [1:n_class*n_img]),:), k*ones(1, length(train_set)));
% your code here to analyze accuracy
…….
end

[2] (50pts) Homograph estimation: use the SVD to solve the over-fitting Ah=0 as covered in class. Use the sample code as template: http://www.vlfeat.org/applications/sift-mosaic-code.html, compute homograph for the following two images:

First compute SIFT and SIFT matches, then select good matches to solve homography as an over-determined linear equation via SVD. Show your code and solution details, as well as the final homography matrix. Use matlab imtransform to wrap the image according to the homography and verify the accuracy.

A) How many SIFT points pairs you found ? Select the best M=8 matching pairs, and use that to compute your Matrix A, for Ah=0 homography solution: [15pts]

B) Show the SVD of A and what are the zero singular values ? [10 pts]

C) Show the null space solution to Ah=0, i.e,non-zero h that makes Ah=0 [10pts]

D) For all matched SIFT points, how many are in agreement with this homography ? [15pts]

Check Price Discount

Study Notes, Research Topics & Assignment Examples: »

Why Choose our Custom Writing Services

We prioritize delivering top quality work sought by college students.

Top Research Professionals

The research experts and assignment help team consists exclusively of highly qualified graduate writers, each professional with in-depth subject matter expertise and significant experience in custom academic writing.

Discounted Pricing

Our custom writing services maintain the highest quality while remaining affordable for students. Our pricing for research papers, theses, and dissertations is not only fair considering the superior quality but also competitive with other writing services.

0% Similarity Index

We guarantee plagiarism-free, human-written content. Every product is assured to be original and not AI-generated. Our writers, tutors and editors are research experts who ensures the right formating and citation sytles are followed. To note, all the final drafts undergo rigorous plagiarism checks before delivery for submission to ensure authenticity for our valued customers.

How it works

When you decide to place an order with Dissertation Help, here is what happens:

Complete the Order Form

You will complete our order form, filling in all of the fields and giving us as much instructions detail as possible.

Assignment of Writer

We analyze your order and match it with a custom writer who has the unique qualifications for that subject, and he begins from scratch.

Order in Production and Delivered

You and your writer communicate directly during the process, and, once you receive the final draft, you either approve it or ask for revisions.

Giving us Feedback (and other options)

We want to know how your experience went. You can read other clients’ testimonials too. And among many options, you can choose a favorite writer.

Write My Paper