how to increase contrast ?

hi
i’m working with an array of pixels. i’m doing operations on it (in particular with the accumulation buffer). i obtain an white and black image, but there is an very low contrast. how can i increase it ? with filters ? which one(s) ?

thanks
phanie