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

How do I save the XY coordinates of a Binary Image in R?

I am trying to save the XY coordinates of a binary image in R similarly to the save "Save XY Coordinates" function in ImageJ. I've looked through several image analysis packages available for R, but haven't yet figured out how to accomplish this.
2
votes
1 answer

Not able to display actual grayscale image using EBImage package in R

I am new to image processing in R. To start with, I am using the EBImage R package for this. I have a 260 by 134 Matrix which I converted to an image using > image1 <- as.Image(matrix1) And, here is the image object summary > image1 colorMode …
novicegeek
  • 773
  • 2
  • 9
  • 29
2
votes
5 answers

How to decrease background noise in binary image

Here is an example of binary images, i.e. as input we have an imageByteArray with 2 possible values: 0 and 255. Example1: Example2: The image contains some document edge on a background. The task is to remove, decrease amount of background pixels…
2
votes
2 answers

Element-wise binary value concatenation of two matrices

Element by element, I want to concatenate binary values from different matrices to one matrix. For example, |1 0 0| |0 1 0| |10 01 00| |0 1 1| |1 1 0| = |01 11 10| |1 0 1| |0 0 1| |10 00 11| How can this be done?
Michael
  • 33
  • 7
2
votes
2 answers

Remove unwanted white pixels for plate segmentation Matlab

The spatial resolution images that i will be using in this project is 1000x563. My aim in this step is to remove all unwanted white pixel but not the number plate so I could segment the plate accurately. But the problem is I could not remove those…
2
votes
2 answers

comparing two Binary images in opencv

I have two binary images of hand which are almost same.How should I compare them to know whether they represent almost same shape or not.I have tried finding euclidean distance between two images but its not giving correct answer if the image is…
1
vote
1 answer

Merge "True" chunks in binary array (Binary Closing)

I have a (big) boolean array and I'm looking for a way to fill True where it merges two sequences of True with minimal length. For example: a = np.array([True] *3 + [False] + [True] *4 + [False] *2 + [True] *2) # a == array([ True, True, True,…
Jon Nir
  • 507
  • 3
  • 15
1
vote
1 answer

Running transfer learning for my binary classification model following ResNetV250 model on tensorflow: Value error

I am trying to apply transfer learning (ResNetV250 & EfficientnetB0) to my binary image classification model but got a Value Error while fitting the model. I add the final layer with the following parameter -> layers.Dense(num_classes,…
1
vote
2 answers

Image masking by coordinate or changing binary image pixel to black based on the the coordinate

I have this binary image and i want to remove the objects (convert all the white pixel to black ) that are above the (x, y) coordinate. This is the inital binary image image This is is the binary image with the x and y coordinate points plotted. I…
Yonas
  • 33
  • 5
1
vote
1 answer

Binary image from API, convert and save path

Im receiving a binary image from an API (Line API) // if status 200 if ($response->isSucceeded()) { // get binary image from api $binary = $response->getRawBody(); // convert to base64? $imageData = base64_encode($binary); //…
haashe
  • 181
  • 2
  • 11
1
vote
0 answers

How can I convert XYZ point cloud to binary mask image

I want to convert a set of point cloud (X, Y, Z) to a binary mask image using python. The problem is that these points are float and out of range of 0-255. To more specific, the points are related to an object (rectangle or ellipsoid), so I should…
1
vote
1 answer

Raw Binary Data for Microsoft Cognitive Service API

For the Microsoft Azure Cognitive Services API, the image needs to be passed in this format Input passed within the POST body. Supported input methods: raw image binary. So, I was very lost on how to convert the image the user is uploading into that…
1
vote
0 answers

Pixel to Area conversion not working properly with Matlab im2bw

I am writing a short Matlab script to use im2bw to calculate the area of objects in the image. I am trying to validate that the areas are being calculated correctly, but on the reference image I am using the last square's area is 2% off and I cannot…
1
vote
1 answer

Silhouette extraction from binary image

I am working with binary images from CASIA database and opencv in a C++ project. I am looking for a way of extracting only the silhouette(the bounding box containing the silhouette). The original images are 240x320 and my goal is to get only the…
1
vote
1 answer

Image segmentation in python (opencv) - Insect wing

This is the kind of image that I have: Another example: now the ground truth: I need a code to get the results similar to the ground truth algorithm, any idea and suggestion will help me because I don't even know where to start, thanks.
João
  • 175
  • 1
  • 2
  • 10
1
2
3
8 9