Consider the following code:
by_ref.h
typedef struct OutPutImage{ double *** output_img; int nb_images; int nb_cols; int nb_rows; }opi_