added computeNMChannels helper function to compute the diferent channels to be processed independently in the N&M algorithm.
Using cv::magnitude instead of custom loop and Mat<float> instead of Mat<double> to compute gradient magnitude channel.
Merge pull request #1414 from lluisgomez:scene_text_detection_computeNMChannels