Don't know what type of image you have, but if it is of a nebula, I suspect Cabral's method may not work. Notice that he only applies his technique to stars on a "black" sky background. I'm just guessing because I've never used this method (nor any other method) with any success on nebulae.
Alex