Author Topic: Image processing in C : Median filter over "time"  (Read 4628 times)

Offline Sylphe

  • Transcended Spirit
  • ***
  • Posts: 119
  • LV: 3
  • Gender: Male
  • Huunngrryyyy *o*
    • View Profile
Image processing in C : Median filter over "time"
« on: May 04, 2015, 11:29:18 PM »
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
« Last Edit: May 07, 2015, 12:30:32 AM by Sylphe »
blindly follow his heart can lead to the loss
(click to show/hide)
Sylphe, descendant of Zoldik Family.
Quote from: TedBear