Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Look-up tab...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 9543 of 9775
Post > Topic >>

Re: Look-up table with anonymous functions

by Le Chaud Lapin <jaibuduvin@[EMAIL PROTECTED] > Apr 28, 2008 at 11:29 PM

On Apr 24, 4:43 pm, "Simon Johan" <si...@[EMAIL PROTECTED]
> wrote:
> The idea is to generate a look-up table with all the computed
> multiplications, so when an output pixel is to be calculated it only
> multiplies numbers not previously multiplied. Otherwise it fetches the
> result from the table. Provided that a look-up operation is faster than
a
> multiplication, this will lead to speed improvements.

Not sure what you are trying to do.

The convolution is unique, so for each superposition, you will have to
multiply and sum over the entire input and impulse response x[m][n] *
h[j][k].

If I understand you correctly, what matters is whether you are about
to multiply two values already seen. In that case, you'd have a lookup
table for _those_ two values without concern for where they were in
the matrices. Unless your multiplications are expensive, there is no
point, as you undoubtedly already know.

If you find that a new input image x'[m][n] has identical pixels in
the same positions as x[m][n], then again, you can only know this when
you know this, and same argument applies.

If you are talking about reconvolving an already-seen input with h[m]
[n]...well then..there is no problem. ;)

-Le Chaud Lapin-


-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 5 Posts in Topic:
Look-up table with anonymous functions
"Simon Johan" &  2008-04-24 15:43:19 
Re: Look-up table with anonymous functions
Greg Herlihy <greghe@[  2008-04-25 10:14:20 
Re: Look-up table with anonymous functions
Le Chaud Lapin <jaibud  2008-04-28 23:29:06 
Re: Look-up table with anonymous functions
Francis Glassborow <fr  2008-04-29 10:37:33 
Re: Look-up table with anonymous functions
Alan McKenney <alan_mc  2008-04-30 17:02:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 8 23:38:20 CDT 2008.