How to customize image preprocessing (not used net-scale-factor, pixel normalization factor)

The net-scale-factor net-scale-factor is designed for the specified formula (y = net-scale-factor) * (x-mean).
However, I want to calculate my custom formula ( y = (((net-scale-factor) * x ) - 0.5) *2).
What should i do to proceed with this work.