Log in

View Full Version : MVTools question


rkalwaitis
2nd June 2010, 21:43
I am trying to use MFlowBlur as a prefilter. I think the below little snippet works. It returns a picture anyways :)

I was looking for a bit more information about MFlowBlur. I read the MVtools2 documentation.

Also does this work with the MVDegrains? I tried but could not get a good return. It seemed to have videos overlayed one on top of the other. Perhaps it has to do with the selectevery command.

Why would one prefilter with a blur?

super = MSuper()
backward_vectors = MAnalyse(super, isb = true)
forward_vectors = MAnalyse(super, isb = false)
prefiltered = MFlowBlur(super, backward_vectors, forward_vectors, blur=15)
superfilt = MSuper(prefiltered)
backward_vectors = MAnalyse(superfilt, isb = true,delta = 2, overlap=2)
forward_vectors = MAnalyse(superfilt, isb = false,delta = 2, overlap=2)
forward_compensation = MCompensate(super, forward_vectors)
backward_compensation = MCompensate(super, backward_vectors)
interleave(forward_compensation, last, backward_compensation)
DeGrainMedian()
selectevery(3,1)

thanks

Didée
2nd June 2010, 22:09
Technically that script seems OK to me. It would be more clear to name the 2nd set of vectors different from the 1st set of vectors, but that's just cosmetics and should not interfere with the functionality. (Unless it's something MVTools-specifically that I'm not aware of.)

To me, the question is: What's the purpose of using MFlowBlur as prefilter? It's not a big noise cleaner on the one hand ... and on the other hand, the created motion blur could make the job even harder for the 2nd-stage motion search.

rkalwaitis
2nd June 2010, 22:23
Didee,

That was one of my questions, why would I use a blur as a prefilter? According to your response, it appears that a blur can be used as a noise cleaner. If this is the case, why not use a denoiser? What if I gave the vector searches for the blur a different naming convention? MFlowBlur was in the MVTools2 documentation and I was trying to see what it did. I just combined it with a denoiser. What would be a better prefilter? I notice that blurs are used as prefilters in other scripts. I was thinking that the MFlowBlur was part of the MVTools and it may be more suited for the job than another blur.