Beispiel #1
0
 public static IReadOnlyPixelBuffer <TPixel> ProjectRows <TPixel>(
     this IReadOnlyPixelBuffer <TPixel> pixels,
     PixelBufferProjectorCallback <TPixel> projector)
     where TPixel : unmanaged, IPixel
 {
     return(ProjectRows(pixels, ImagingConfig.Default, projector));
 }
Beispiel #2
0
 public static IReadOnlyPixelBuffer ProjectRows(this IReadOnlyPixelBuffer pixels,
                                                ImagingConfig imagingConfig, PixelBufferProjectorCallback projector)
 {
     if (projector == null)
     {
         throw new ArgumentNullException(nameof(projector));
     }
     return(projector.Invoke(new ReadOnlyPixelBufferContext(imagingConfig, pixels)));
 }
Beispiel #3
0
 public static IReadOnlyPixelBuffer <TPixel> ProjectRows <TPixel>(
     this IReadOnlyPixelBuffer <TPixel> pixels,
     ImagingConfig imagingConfig,
     PixelBufferProjectorCallback <TPixel> projector)
     where TPixel : unmanaged, IPixel
 {
     if (projector == null)
     {
         throw new ArgumentNullException(nameof(projector));
     }
     return(projector.Invoke(new ReadOnlyPixelBufferContext <TPixel>(imagingConfig, pixels)));
 }
Beispiel #4
0
 public static IReadOnlyPixelBuffer ProjectRows(this IReadOnlyPixelBuffer pixels,
                                                PixelBufferProjectorCallback projector)
 {
     return(ProjectRows(pixels, ImagingConfig.Default, projector));
 }