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
0
votes
1 answer

Boundary to medial axis transform

Does anyone know an easy way, given a binary image, to construct a transform which for each point on the boundary (contour set pixel) returns the point on the medial axis that it is closest to?
Malcolm McLean
  • 6,258
  • 1
  • 17
  • 18
0
votes
0 answers

Get the image data using the binary get

Hi I have a task which i am not clear what to do may be I can get some suggestion to complete my task. I have a image ID using that image ID I need to get a image data using binary get As I am not sure what this binary get mean may be it related to…
suresh
  • 167
  • 2
  • 12
0
votes
1 answer

Python OpenCv2, counting contours of colored object

I want to be able to count the number of pixels in a detected object. I'm using the cv2.threshold function. Here is some sudo code. import cv2 import numpy as np import time while True: cam= cv2.VideoCapture(0) while(cam.isOpened()) …
Davey Boy
  • 79
  • 1
  • 10
0
votes
0 answers

MATLAB - Combine two binary image by comparing 3 x 3 patch (sub-matrix)

Matlab - Hello, I want to combine two binary images with same size (111x111), but first i want to divide the image into 3 x 3 matrix patch (37 sub matrix), with the two conditions: 1.If the 3 x 3 patches from image 2 matrix values is all white (1)…
0
votes
0 answers

Labeling binary image objects algorithm

I need to recognize objects in binary image. I have searched on the internet looking for possible algorithms, there are a lot of them, but unfortunately it is very hard to personally for me convert raw formula to the code algorithm without any…
CROSP
  • 4,499
  • 4
  • 38
  • 89
0
votes
1 answer

Matlab displaying binary images as video

I'm using this code as a starting point to detect the skin color of a hand in a video. as the first step I've manged to do that and display the result by using the imshow(segment); function in Matlab. here's the code (found online) i don't fully…
0
votes
0 answers

Clean Binary Image in Matlab

I have a noisy binary image of size 300X200 pixel. I need to clean it up, but using a given objective function, which I should maximise. So I have the noisy binary image and the objective function. I should find the cleaned binary image which…
0
votes
1 answer

Insert binary threshold image (CV_8UC1) into a ROI of a coloured mat (CV_8UC4)?

I've got a sequence of images of type CV_8UC4. It is of HD size 1280x720. I'm executing the bgfg segmentation (MOG2 specifically) on a ROI of the image. After the algo finished I've got the binary image of the size of ROI and of type CV_8UC1. I want…
Grigory
  • 992
  • 2
  • 18
  • 34
0
votes
1 answer

Flood filling without using function (Matlab)

Im working on my project where one of the operations that i needed to do first is flood filling before achieving the outcome. I am aware that there are available function such as bwmorph or imfill to flood fill the black pixels of my image but im…
0
votes
0 answers

How to get max rectangle basing inside an object

I have a binary image on MATLAB. Assume that there is one object in image, and pixel values of ones and zeros represent the object and the background respectively. I want to get the rectangle with max volume that can be based inside the object. Is…
Bilal
  • 33
  • 8
0
votes
1 answer

Crop from binary image (boolean array) in Java

I have a 2D boolean array that is a segmented image and looks like this: 000000000000000000 000000011110000000 000001110111100000 000001111110100000 000000111101100000 000000111011000000 And I want to crop the picture and resize it to a…
0
votes
1 answer

Need help regarding plotting the pixel from binary images to a sparse image

I have a binary image and I want to plot only the foreground pixels into a sparse image using MATLAB. I know that the pixel location of the foreground image (which is white) has to be known. For that I following code : close all clear all original =…
ADI
  • 91
  • 1
  • 4
  • 13
0
votes
0 answers

Explanation Of Storage of an image on a machine

I want to know that how the storage of an image is determined (the size of an image is determined). i have read some articles but some say that 1 pixel = 1 byte (which according to me should be wrong) and some says it takes 32 bits for high depth…
newbee
  • 179
  • 1
  • 3
  • 12
-1
votes
1 answer

Coloring the categorical image

I have a categorical image with the size of 14400 * 7200. I am trying the following code to colorize the values ​​in this image. It works but takes a long time. How can I do this in a shorter time? color_map = {} for category in…
-1
votes
1 answer

To encode image using jbig2enc

I am trying to encode image using JBIG2 encoder that I have installed using Macports. https://ports.macports.org/port/jbig2enc/ I have also installed leptonica from Macports: https://ports.macports.org/port/leptonica/ The system seems to have…
1 2 3
8
9