About 6,360,000 results
Open links in new tab
  1. c - What is bit masking? - Stack Overflow

    May 8, 2012 · I am fairly new to C programming, and I encountered bit masking. What is the general concept and function of bit masking? Examples are much appreciated.

  2. python - How to mask image with binary mask - Stack Overflow

    Dec 20, 2019 · Use cv2.bitwise_and to mask an image with a binary mask. Any white pixels on the mask (values with 1) will be kept while black pixels (value with 0) will be ignored.

  3. How to Apply Mask to Image in OpenCV? - Stack Overflow

    Sep 20, 2011 · I want to apply a binary mask to a color image. Please provide a basic code example with proper explanation of how the code works. Also, is there some option to apply a …

  4. opencv: Creating a binary mask from the image - Stack Overflow

    Dec 3, 2021 · 3 I have this picture and I want to make a binary mask from it. The main (the biggest) rectangle should be white and other parts of the picture shound be black. Like this: To …

  5. python - How to add multiple binary masks? - Stack Overflow

    Masks are binary. If you want just one mask, then when you combine them, you just add them together. Thus the overlap will not know which image to use, since the result is still binary. You …

  6. How to properly mask a numpy 2D array? - Stack Overflow

    Since masking is element by element, it could mask one element in row 1, 2 in row 2 etc. So in general compressing, removing the masked elements, will not yield a 2d array.

  7. How to create a binary mask from a yolo8 segmentation result

    May 3, 2023 · How to create a binary mask from a yolo8 segmentation result Asked 2 years, 7 months ago Modified 10 months ago Viewed 14k times

  8. How to create mask images from COCO dataset? - Stack Overflow

    Jun 12, 2018 · 2 Just adding variation of the answer, in case if you want to get the binary mask of all the annotations, it can be created as:

  9. c - Algorithm to generate bit mask - Stack Overflow

    Sep 8, 2009 · int mask = -1; mask = mask << param; mask = ~mask; This way you can avoid lookup tables and hard coding the length of an integer. Explanation: A signed integer with a …

  10. python - SciPy Create 2D Polygon Mask - Stack Overflow

    I need to create a numpy 2D array which represents a binary mask of a polygon, using standard Python packages. input: polygon vertices, image dimensions output: binary mask of polygon …