Why do you need to reverse the stretch at the end?
What are you using to combine the channels into an RGB image?
I'm curious as I've never wanted a linear image out of Startools...?
I feel like I'm missing something important!
My workflow for NB is DSS -> Startools -> PS.