From 3b23d569c444c95c5d174c1524d47820cf1f1e58 Mon Sep 17 00:00:00 2001 From: lxowalle Date: Thu, 8 Aug 2024 14:17:34 +0800 Subject: [PATCH] * revert image.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 8a779a07..9080a552 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 true. + * @param copy Select whether to return a new image or modify the original image. default is false. * @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 = true); + 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); /** * @brief Inverts the image in place.