Questions tagged [image-thresholding]

To be used with regards to converting any image to a binary image having two values 0 and 1. It is a simple elementary image segmentation step.

For details on various methods used visit THIS WIKI PAGE

189 questions
0
votes
1 answer

OpenCV - obtaining smooth part of oblong shape after thresholding

I am doing thresholding on an image and I achieve this result: image after thresholding. Now I would like to achieve only the contour of the biggest oblong shape: oblong shape. What is the best way to achieve it with OpenCV? I know that the shape…
MiHu
  • 23
  • 4
0
votes
1 answer

Temperature is black after thresholding

I want to show the temperature based on the density. Following are the function that Im using, def add_heat(heatmap, bbox_list): for i in range(len(bbox_list)): rect = trackers[i].get_position() …
user6092898
0
votes
1 answer

How to perform thresholding?

When I apply thresholding I'm getting an error: import SimpleITK as sitk img = sitk.ReadImage("Sub1.png") img=img>20 The error is: RuntimeError Traceback (most recent call last) in…
0
votes
1 answer

How to set pixel values of a matrix at specific indexes to pixel values of a different matrix with the same indexes?

What I'm trying to do is image thresholding with matrix operations, but rather than setting the threshold result equal to a fixed value, like 256 or something, I'm trying to set the result equal to the calculation of pixel values from two other…
Yuerno
  • 751
  • 1
  • 8
  • 27
0
votes
1 answer

MATLAB Image thresholding Issue

I have the following image that I am attempting to analyse, the idea is to outline the droplet so that I can then get its boundaries using bwboundaries. My code is currently image = imread('IMG00022.jpg'); BW = im2bw(image, 0.35); BW = ~BW; BW =…
JustOneTime
  • 35
  • 1
  • 2
  • 12
0
votes
1 answer

Otsu output returns full black or white depending on black and white pixels

My self implemented otsu returns a good quality of binarize image but if the image has "more black" pixels it returns a full black image and if the image has "more white" pixels it returns a full white image. Im using drawable and if I use camera it…
Ray
  • 50
  • 11
0
votes
0 answers

Binarize a Gray Scale QR Code image while maintaining its readibility

We get computer generated QR Codes which are in Gray Scale format. These QR Codes are readable. However, we need to convert these Grayscale QR Codes into a Binary Format for a particular end application. This is where the problem arises. When we…
0
votes
0 answers

Otsu histogram self implementation

I tried to make my own implementation of Otsu. I already read some source code from java and some sites that explains the formula and tried to implement it. I want to share this to ask if anyone can help me or at least tell about what can I do or…
0
votes
0 answers

Image segmentation with watershed thresholding

I have implemented the marker-less (so not like OpenCV) watershed algorithm proposed in a 1991 paper by Vincent and Soille. I have also implemented a distance transform algorithm to apply it before watersheding. It works well in a good number of…
0
votes
0 answers

Image Processing techniques DFT or Thresholding

I am a beginner in image processing. I started with opencv . Now there is a fundamental confusion to me . One is thresholding and one is image transformation . I am confused in these two parts.Till now i have understood couple of things: 1. Input…
0
votes
1 answer

Binarization image does not have good effect

I have a problem when binarizing an image: The walker in the picture is lost after binarizing. Could anyone offer help? Here's the code I used: clc; clear; video = VideoReader('C:\Users\Small_Bird\Desktop\ch02_20170323193606~2.avi'); nFrames =…
Small_Bird
  • 15
  • 1
  • 7
-1
votes
3 answers

Extract specific region in the image

I have an image in which I am interested in a specific region in the image.. for example I want to extract region 5-same pixel value everywhere (and background 0). Meaning region 3 and 4 should not be present in the output image(should be 0). Here…
Mass17
  • 1,555
  • 2
  • 14
  • 29
-1
votes
1 answer

Thresholding an image gives fuzzy black output

Im preprocessing a qrcode to read it. I threshold the image, but sometimes I get a fuzzy black output, sometimes i get the proper binary image. Why is this happening? IM using C# and Emgucv. Here is my code: Image
-1
votes
1 answer

How to do color thresholding in C# image processing?

I'm writing a small C# application that is supposed to process an image. In fact, multiple images per second if possible, so it needs to be fast. I need to do something like binary thresholding, but a little different I guess. I need everything in…
user2677466
  • 139
  • 1
  • 13
-1
votes
1 answer

Image foreground extraction techniques using Python

I've prepared a piece of code in python using OpenCV that extracts the foreground in the image. My program is getting a stream of images and I need to extract the object from those images. The images include products like shoes, bags or clothing.…
1 2 3
12
13