blob: 5cdc3a2e58a78ead0c3173e59366665e0c4c9c42 [file] [log] [blame]
Austin Schuh8c267c72023-11-18 14:05:14 -08001#ifndef FRC971_ORIN_THRESHOLD_H_
2#define FRC971_ORIN_THRESHOLD_H_
3
4#include <stdint.h>
5
6#include "frc971/orin/cuda.h"
7
8namespace frc971 {
9namespace apriltag {
10
11// Converts to grayscale, decimates, and thresholds an image on the provided
12// stream.
13void CudaToGreyscaleAndDecimateHalide(
14 const uint8_t *color_image, uint8_t *gray_image, uint8_t *decimated_image,
15 uint8_t *unfiltered_minmax_image, uint8_t *minmax_image,
16 uint8_t *thresholded_image, size_t width, size_t height,
17 size_t min_white_black_diff, CudaStream *stream);
18
19} // namespace apriltag
20} // namespace frc971
21
22#endif // FRC971_ORIN_THRESHOLD_H_