lua.wetgenes.grd.adjust_contrast
ga:adjust_contrast(sub,con)
sub is the middle grey value, probably 127, and con is the amount of contrast.
A con of 0 should have no effect, a con of -1 will be a flat grey and a con of 1 will give a huge contrast increase.