Fixed a bug in regulatroidialog module when the roi value is to big while the input image is gray image.
Fixed a bug in regulatroidialog module when the roi value is to big while the input image is gray image.

sealhuang/FreeROI,zhouguangfu/FreeROI,sealhuang/FreeROI,zhouguangfu/FreeROI