First time here? Check out the FAQ!
answered 2018-04-18 00:22:46 -0600
Looks like you should use
grayRefRoi = grayReference(refRectangle);