QuickTopic (SM) free message boards QuickTopic (SM) free message boards
Skip to Messages
  Sign In to access your topic list  |New Topic |My Topics|Profile
Upgrade to Pro   Customize, show pictures, add an intro, and more:   QuickTopic Pro...and check out QuickThreadSM
Topic: cse252a
Views: 2697, Unique: 680 
Subscribers: 5
What's
this?
Printer-Friendly Page
Subscribe to get & post, or stop messages by email Subscribe
All messages    << 80-85  64-79 of 85  48-63 >>
About these ads
Who | When
Messagessort recent-bottom   
Post a new message
 
al  79
03-22-2006 02:14 PM ET (US)
could someone post any notes they took at today's Q & A session?
Arash  78
03-17-2006 11:02 PM ET (US)
When we refer to the two windows, (the second of which is shifted by the previous result in MSLK)

The gradient of the first window is used in producing A,
The difference of the two windows is used in producing B...

Is this correct?
Neil AlldrinPerson was signed in when posted  77
03-14-2006 04:23 PM ET (US)
OK, seems every time I make a post I end up confusing things for people. The optical flow results I posted for the corridor are from images 1 and 2 instead of 0 and 1. So if you're wondering why the optical flow looks funny that's why.

-Neil
Neil AlldrinPerson was signed in when posted  76
03-14-2006 01:47 PM ET (US)
Brian,

Yeah, you probably don't need to explicitly apply a Gaussian filter, but I was just making sure...

----

Yuzhe,

In my implmentation, if a window goes outside the image, I truncate it so it only contains valid portions of the image (an equivalent technique would be to zero pad the image). I found this helped a lot because otherwise the edges of the image don't get an optical flow estimate at low-res. I recommend doing this if you haven't already, but it's not really stated anywhere that you should do this so consider it optional.
Yuzhe  75
03-14-2006 12:50 PM ET (US)
Hi Neil,

For the sphere image, you used lambda2 > .01 & lambda1/lambda2 < 100, windowsize = 15x15, 6 levels. Well, the sphere image is 200*200, then the pyramid should be 200, 100, 50, 25, 12, 6. Then how could we use the 15*15 window on a 6*6 image on the 6th level? I think the window has fixed size at each level, right?

Thank you!
Brian McFee  74
03-14-2006 11:59 AM ET (US)
Is explicit gaussian smoothing necessary? If we use imresize(), isn't it supposed to do that automatically?

From the matlab doc:


When the specified output size is smaller than the size of
the input image, and METHOD is 'bilinear' or 'bicubic',
IMRESIZE applies a lowpass filter before interpolation to
reduce aliasing. The default filter size is 11-by-11.
Neil AlldrinPerson was signed in when posted  73
03-14-2006 03:25 AM ET (US)
Oh, one more thing I should mention: I'm using Gaussian smoothing at each level of the pyramid..

-Neil
Neil AlldrinPerson was signed in when posted  72
03-14-2006 03:23 AM ET (US)
OK, I guess image tags don't work in this discussion board...here's links to the images:

sphere result

corridor result
Neil AlldrinPerson was signed in when posted  71
03-14-2006 03:22 AM ET (US)
Ali,

In my implementation I used 5-6 levels (at least for the sphere and corridor images).

-----------------------------

Ramsin,

When the threshold test fails, you should just keep your previous estimate of the optical flow at that pixel. One of the advantages of multi-scale optical flow is that it can work in regions with little texture (without a huge window) because the optical flow is propagated from the low-res estimation.

Also I think you're confused about the thresholds..there should only be two thresholds. You should check that lambda2 > th1 and that lambda1/lambda2 < th2. I found that values of th1 = .01 and th2 = 100 worked fairly well.

----------------------------

Nikhil,

Below are two results from my implementation. For the corridor image I am using lambda2 > .1 & lambda1/lambda2 < 100 with a window size of 9x9 and 7 levels. For the sphere image, I am using lambda2 > .01 & lambda1/lambda2 < 100, windowsize = 15x15, 6 levels.

<img src="http://www.neilalldrin.com/shared/files/of_sphere.jpg" />

<img src="http://www.neilalldrin.com/shared/files/of_corridor.jpg" />
Nikhil  70
03-14-2006 02:04 AM ET (US)
Neil,
How well do we expect the MSLK to work for the sphere and corridor images?
Thanks
Nikhil  69
03-14-2006 02:04 AM ET (US)
Deleted by author 03-14-2006 02:04 AM
Ramsin  68
03-13-2006 02:49 PM ET (US)
Hey Neil,

What do we do in the cases where the thresholds fail? Do we just set u and v to 0 at those places? Your explanation is still really fuzzy to me. Also, how many thresholds are we supposed to have? Your response to Ali made it sound like we need to check if lambda1 is large, lambda2/lambda1 is less than but close to 1, lambda2 is large, and lambda1/lambda2 is small but not smaller than 1. Looking at my lambda values for the corridor images, those 4 thresholds will never hold together, so I'd pretty much create a u,v field of all zeros. Is that what you want? Sorry, this isn't too clear to me.
Ali  67
03-13-2006 05:10 AM ET (US)
neil:
how many layers should the gaussian pyrimad have? 3,4,5?
Neil AlldrinPerson was signed in when posted  66
03-12-2006 06:04 PM ET (US)
Ryan,

If you are comparing windows and one of the thresholds fail, it means you shouldn't update your flow field at that position because you will get a bad result (A'*A is either ill-conditioned or the conditioning is due to noise).

--------------

Ali,

It sounds like you understand what's going on. The best optical flow estimates will come from regions with lots of texture; in this case lambda1 will be large and lambda2/lambda1 will be close to 1. Basically, the higher lambda2 is the better and the lower lambda1/lambda2 is the better (where lambda1 > lambda2).

--------------

Yuzhe,

Suppose you are computing the optical flow at position (x,y) and the current optical flow estimate is given by u(x,y) and v(x,y). Then you would use windows of (window size = [5 5]),

W0 = I0(y-2:y+2,x-2:x+2);
W1 = I1(y-2+v(x,y):x+2+u(x,y));

So basically, the optical flow at the center pixel is used to shift the entire window the same amount.

-Neil
Yuzhe  65
03-12-2006 03:50 PM ET (US)
Hi everyone,

While implementing the algorithm, shall we shift the window pairs in a "pixel by pixel" manner, or should we divide the whole image into blocks and then figure out the velocity for each block? I think according to our assumption, pixels within a certain window are supposed to have the same velocity. So, if we do it in a pixel by pixel fashion, is it a contradiction to our assumption? I got confused here.

Thanks!
Ali  64
03-11-2006 09:27 PM ET (US)
Edited by author 03-11-2006 09:30 PM
Neil:
I still dont get why we need setting thresholds for lambda1 and lamda2. Well I do understand when lamda1 and lamda2 are small it means low textured region(i.e. constant region) so there wont be much motion in those regions. I do also understand that when lamda1 is much larger than lamda2 we have an egde and gradients will point most in one direction and could cause matrix A to become singular. And also when both lamda1 and lamda2 are large it refers to a high textured region. So what do the thresholds that you talked about in the assignment mean? and how could they help us
Thanks
RSS link What's this?
All messages    << 80-85  64-79 of 85  48-63 >>
QuickTopicSM message boards
Over 200,000 topics served
Learn more Frequently asked questions  Acknowledgements
What they're saying about QuickTopic
 Questions, comments, or suggestions? Contact Us
Read our use policy before beginning. We value your privacy; please read our privacy statement.
Copyright ©1999-2008 Internicity Inc. All rights reserved.