--
It might be slow, depending on how you implement. Remember from class that SSD can be performed via filtering operations, something like:
ssd = imfilter(im.^2, ones(size(template))) - 2*imfilter(im, template) + sum(template(:).^2);
Note that the first term can be precomputed and cached, since it depends only on the size of the template.
I suggest that you start by working with a small output image until you get it working.
Best,
Derek
--
It might be slow, depending on how you implement. Remember from class that SSD can be performed via filtering operations, something like:ssd = imfilter(im.^2, ones(size(template))) - 2*imfilter(im, template) + sum(template(:).^2);Note that the first term can be precomputed and cached, since it depends only on the size of the template.I suggest that you start by working with a small output image until you get it working.Best,Derek
From: cs498-...@googlegroups.com [mailto:cs498-cp-...@googlegroups.com] On Behalf Of Grace Goo
Sent: Wednesday, September 26, 2012 10:52 PM
To: cs498-...@googlegroups.com
Subject: Re: Overlapping PatchesI'm sorry, I just have one more question. I'm doubting whether I have to right approach because my approach seems like it's going to be really really slow.For every single overlap, we have to look through all of our patches? Isn't that going to take forever?
On Tuesday, September 25, 2012 11:38:14 PM UTC-5, Grace Goo wrote:Hi, I'm just a bit confused about this line: "Once the cost of each patch has been computed, randomly choose on patch whose cost is less than a threshold determined by tol (see description of choose_sample below)."So I get that we first have to pick a random patch as our upper-left corner, and pick another random patch that overlaps the first one, etc. But I am confused as to what happens after that. What does the "cost" mean? In the lecture slides, we only deal with cost when we're finding the shortest path. I thought the quilt_simple wouldn't be looking for the shortest path, but would just do a straight overlap line?If we're picking the best patch, does that mean we have to try out multiple random patches for each overlap and pick the best one?Thanks in advance,--
--