Questions tagged [binary-image]

Used for questions concerning images of two colors (usually black and white). Such images are common in object detection, edge detection, object counting etc.

A binary image is a digital image that has only two possible values for each pixel. Typically, the two colors used for a binary image are black and white, though any two colors can be used. The color used for the object(s) in the image is the foreground color while the rest of the image is the background color.

131 questions
-1
votes
1 answer

How to find pixel color in image?

I am trying to make the black and white mask. Below image has mask of yellow color of chair. I am making it to white and else everything as black. I have used this color [220, 211, 81] for a mask. If i am finding this pixel color it shows that there…
-1
votes
1 answer

what is this response format image

i am trying to create an app which removes the image background, the send the image through api key and server sends the response, here i get response but i coulnt understand the response image format. PLEASE senior developer and programmers help…
-1
votes
1 answer

OpenCV kmeans binary image

I'm trying to use opencv kmeans function at the binary image but I don't know how to setup the its parameters. My final goal is to find the to two centers of blob. binary_image_files vector centers; Mat points; …
SY B
  • 1
-1
votes
1 answer

How to convert image to binary string using php and file upload?

I am trying to convert image in binary data but not getting solution in php. please help Trying to achieve something like this url. https://www.dcode.fr/binary-image 1 . upload image and convert. 2 . This will convert my image to binary 0 and 1…
-1
votes
1 answer

Increase speed of loop in image processing in python

I'm new to python. I'm writing a program for converting camera input to binary form. It shows there 4 second lag. I'm designing for gesture recognition. So this 4 second lag is not acceptable. Can anyone help me ? import numpy as np import cv2,cv…
-1
votes
1 answer

Find a line perpendicular to a contour

I am working with image segmentation in Matlab. I need to find a line perpendicular to a set of points in order to calculate the maximum distance between that line and the set of points. Here's an example of the problem: The red point represents…
danilo
  • 1
  • 1
-1
votes
1 answer

number of translate 0 to 1 between 2 point in binary image

I have binary fingerprint image . I want to count the number of transform 1 to 0 between 2 point . the value of two point is 0. Can any bode help me for write matlab code of it? my picture is here: My points are a , b . I draw line between a , b
jiang
  • 47
  • 7
-1
votes
1 answer

Accurately detect total area of leaf in digital image in matlab

I have converted the image to binary( black and white). Here is the original image and binary image Here is the code I have written a=imread('image'); imshow(a);title('original image'); b=imresize(a,[200,250]); figure,imshow(b);title('resized…
Kashish
  • 11
  • 4
-1
votes
2 answers

Count black pixels within a circle

I have one vector of radii and second vector of hundreds of [X,Y] coordinates. For each possible coordinate-radius pair I have count all black pixels within a circle (whose center is placed in the coordinate) on an input binary image. What is the…
matt-pielat
  • 1,659
  • 3
  • 20
  • 33
-2
votes
1 answer

Detect High density pixel areas in a binary image

I am doing background subtraction, and I obtain a binary image with foreground objects and with some noise. I want to obtain a ROI for each object on the binary image and them analyze it to ensure that is the object that I want. How do I segment…
-3
votes
3 answers

Finding holes in a binary image

Assume we have following binary image 0010 0101 0101 0010 0100 1010 0100 0000 0 represents background pixels and 1 represents image pixels.As you can see there are two holes in this image.Is there a way to obtain the number of holes in this image…
Hussey123
  • 479
  • 1
  • 5
  • 21
1 2 3
8
9