//========================================================
 //for double image
 /// <summary>
 /// Get the height of the image 
 /// </summary>
 /// <param name="ImageMatrix">2D array that contains the image</param>
 /// <returns>Image Height</returns>
 public static int GetHeightDouble(MyColorDouble[,] ImageMatrix)
 {
     return ImageMatrix.GetLength(0);
 }
 /// <summary>
 /// Get the width of the image 
 /// </summary>
 /// <param name="ImageMatrix">2D array that contains the image</param>
 /// <returns>Image Width</returns>
 public static int GetWidthDouble(MyColorDouble[,] ImageMatrix)
 {
     return ImageMatrix.GetLength(1);
 }