From 8c07d8e48d2c3d7c52285beba5d1b3d295a89662 Mon Sep 17 00:00:00 2001 From: lxowalle Date: Thu, 1 Aug 2024 10:25:57 +0800 Subject: [PATCH] * modify img.binary param --- components/vision/include/maix_image.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/vision/include/maix_image.hpp b/components/vision/include/maix_image.hpp index 9080a552..8a779a07 100644 --- a/components/vision/include/maix_image.hpp +++ b/components/vision/include/maix_image.hpp @@ -629,11 +629,11 @@ namespace maix::image * @param mask Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on. * Only pixels set in the mask are modified. default is None. * @param to_bitmap If true, the image will be converted to a bitmap image before thresholding. default is false. TODO: support in the feature - * @param copy Select whether to return a new image or modify the original image. default is false. + * @param copy Select whether to return a new image or modify the original image. default is true. * @return Returns the image after the operation is completed. * @maixpy maix.image.Image.binary */ - image::Image *binary(std::vector> thresholds = std::vector>(), bool invert = false, bool zero = false, image::Image *mask = nullptr, bool to_bitmap = false, bool copy = false); + image::Image *binary(std::vector> thresholds = std::vector>(), bool invert = false, bool zero = false, image::Image *mask = nullptr, bool to_bitmap = false, bool copy = true); /** * @brief Inverts the image in place.