Exemple #1
0
 /// <summary>
 /// Converts the source channel depth to the destination channel depth.
 /// </summary>
 /// <typeparam name="TDepth">Destination channel depth.</typeparam>
 /// <param name="image">Image.</param>
 /// <returns>Image with converted element depth.</returns>
 public static Bgr <TDepth>[,] Cast <TDepth>(this Bgr <short>[,] image)
 where TDepth : struct
 {
     return(image.ConvertChannelDepth <Bgr <short>, Bgr <TDepth> >());
 }