const parameters
This is not about the const in const RGB *.
Curious code uses const int xsize, but not const RGB * const image as neither xsize nor RGB changes.
If one is using const to help prevent changes to unchanging parameters, be consistent.
// RGB *MedianFilter33(const RGB *image,const int xsize,const int ysize)
RGB *MedianFilter33(const RGB * const image, const int xsize, const int ysize)
IMO: these const tend to be more error prone/obfuscation than worth it as they are noise in a .h function declaration.
// Suggested:
RGB *MedianFilter33(const RGB *image, int xsize, int ysize)
int vs. long long
For array sizing consider size_t and a C2x paradigmprinciple: put dimensions first.
For
// RGB *MedianFilter33(const RGB *image,const int xsize,const int ysize)
RGB *MedianFilter33(size_t xsize, size_t ysize, const RGB *image)