@Override protected Scalar parseScalar(Scalar s){
  if (s.val.length < 3)   throw new IllegalArgumentException("Scalar must have 3 or 4 dimensions.");
  return new Scalar(s.val[0],s.val[1],s.val[2],(s.val.length >= 4) ? (int)s.val[3] : 255);
}

@ Override protected Scalar parseScalar ( Scalar s ) { if ( s . val . length < 3 ) throw new IllegalArgumentException ( "Scalar must have 3 or 4 dimensions." ) ; return new Scalar ( s . val [ 0 ] , s . val [ 1 ] , s . val [ 2 ] , ( s . val . length >= 4 ) ? ( int ) s . val [ 3 ] : 255 ) ; }
parse a scalar value into the colorspace
