Skip to content

Commit

Permalink
* modify img.binary param
Browse files Browse the repository at this point in the history
  • Loading branch information
lxowalle committed Aug 1, 2024
1 parent 5f11f2b commit 8c07d8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/vision/include/maix_image.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::vector<int>> thresholds = std::vector<std::vector<int>>(), bool invert = false, bool zero = false, image::Image *mask = nullptr, bool to_bitmap = false, bool copy = false);
image::Image *binary(std::vector<std::vector<int>> thresholds = std::vector<std::vector<int>>(), bool invert = false, bool zero = false, image::Image *mask = nullptr, bool to_bitmap = false, bool copy = true);

/**
* @brief Inverts the image in place.
Expand Down

0 comments on commit 8c07d8e

Please sign in to comment.