public static unsafe Spread <int> GetValues(InfraredImage image, Spread <Vector2> pixels) { using (var buffer = image.frame.LockImageBuffer()) { return(PipetUtils.GetValues(buffer, builder, image.Info.Width, image.Info.Height, pixels).ToSpread()); } }
public static Spread <int> ToInfraredPipetValues(this InfraredImage image, Spread <Vector2> pixels) => InfraredPipet.GetValues(image, pixels);