blob: 4f38bcffc2684bf2267b794c0df65474fc970e3d [file] [log] [blame]
#ifndef AOS_VISION_BLOB_MOVE_SCALE_H_
#define AOS_VISION_BLOB_MOVE_SCALE_H_
#include <vector>
#include "aos/vision/blob/range_image.h"
#include "aos/vision/image/image_types.h"
namespace aos::vision {
// Sums img into bbox. bbox is constructed empty and grows with each call
// to GetBBox.
void GetBBox(const RangeImage &img, ImageBBox *bbox);
inline void GetBBox(const std::vector<RangeImage> &imgs, ImageBBox *bbox) {
for (const auto &img : imgs) GetBBox(img, bbox);
}
std::vector<RangeImage> MoveScale(const std::vector<RangeImage> &imgs, int dx,
int dy, int scale);
RangeImage MoveScale(const RangeImage &img, int dx, int dy, int scale);
} // namespace aos::vision
#endif // AOS_VISION_BLOB_MOVE_SCALE_H_