|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Calculate Gauss Distribution of 2d-Array
Hi!
It's probably a simple task , but is there a efficient code for the following: I have a 2d-array representing the X-Y coordinates of a picture and another array with Z (=height) values. Now let's say the 2d-array has a dimension of 400 by 400. How can I effectively calculate the two dimensional Gaussian distribution for a neighbourhood of let's say 10x10 points and also take the Z-value of every point as some sort of weighting function into account? The results should get mapped into a new array (same dimension as before), now every array point representing the probability value of the before mentioned 10x10 neighbourhood. I've had a look at NumericalRecipes, however, it's an overkill and doesn't really give me hints for my particular problem. Any help gratefully received! |
|
#2
|
||||
|
||||
|
Moved to Software Design + Algorithms forum.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Software Design > Calculate Gauss Distribution of 2d-Array |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|