blob: 5cdc3a2e58a78ead0c3173e59366665e0c4c9c42 [file] [log] [blame]
#ifndef FRC971_ORIN_THRESHOLD_H_
#define FRC971_ORIN_THRESHOLD_H_
#include <stdint.h>
#include "frc971/orin/cuda.h"
namespace frc971 {
namespace apriltag {
// Converts to grayscale, decimates, and thresholds an image on the provided
// stream.
void CudaToGreyscaleAndDecimateHalide(
const uint8_t *color_image, uint8_t *gray_image, uint8_t *decimated_image,
uint8_t *unfiltered_minmax_image, uint8_t *minmax_image,
uint8_t *thresholded_image, size_t width, size_t height,
size_t min_white_black_diff, CudaStream *stream);
} // namespace apriltag
} // namespace frc971
#endif // FRC971_ORIN_THRESHOLD_H_