Image processing in C : Median filter over "time"

Started by Sylphe, May 04, 2015, 05:29:18 pm

Previous topic - Next topic


May 04, 2015, 05:29:18 pm Last Edit: May 06, 2015, 06:30:32 pm by Sylphe
Hello I have a particular request about devlopment in C, precisely in image processing, doing a median filter :S
Make a median filter is not very hard (you have your zone around the pixel you're checking then you fix this pixel to the middle value into your zone),
but making a median filter over multiple images at a time is more complicated.
The way I have to process is :
I have some pictures showing a man or two walking occasionally in an area. (pictures have identical size and background)
I have to check, for each pixel, then for each picture, the middle value of that pixel througout all pictures...

The problem is that I must keep for each pixel those values : x, y, picture_number, value.
With a 2D matrix I can keep x,y,value  but it will be rewrited from a picture to another :/
Do you think it is worth it / obligatory to create a 3D matrix instead of 2D in C ? (I have around 800 pictures to process)
Or maybe did you already do something similar and know how to do? ^^

EDIT:  fixed I just had to inverse loops
blindly follow his heart can lead to the loss

Sylphe, descendant of Zoldik Family.
Quote from: TedBearTRY KEEP UP