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

Threshold Error for few numbers, but not for others

I was trying to use the contours of and image, and when I tried the following it gave and error. I know for sure that it is because of the 24, because I used another number such as 45 and it would accept it. The rest of the code is okay, that's why…
-1
votes
1 answer

How to Threshold a video in python?

I'm trying to read a video into python (be it live or pre-recorded is irrelevant) then have each frame processed using a thresholding algorithm to convert the video to a 2 colour format. with a simple thresholding method, i get this…
-1
votes
1 answer

Error: Assertion failed (src.type() == CV_8UC1) in threshold

I've tried Real Time Video using Otsu thresholding. But i got this problem OpenCV Error: Assertion failed (src.type() == CV_8UC1) in threshold, file /home/usr/opencv-3.2.0/modules/imgproc/src/thresh.cpp, line 1356 terminate called after throwing…
-1
votes
1 answer

How to pass RGB information to do Thresholding of an image

I am getting mask image and RGB image from Unreal Engine using UnrealCV. Here, I also get the color information(R, G, B) of the object using UnrealCV from the mask image. Now, I want to know how can I pass this RGB information to OpenCV to do the…
-1
votes
1 answer

Why am i getting this error "'SetPixel is not supported for images with indexed pixel formats"

I am trying to make threshold process on an image. The image of type "tif" and i am getting this error says SetPixel is not supported for images with indexed pixel formats This is my code and p11 is the image name for (int r = 0; r < p11.Width;…
-1
votes
2 answers

Otsu's method thresholding making a 'shroud'

I'm trying to threshold an image using Otsu's method in Opencv: Although when I threshold it, some parts of the picture are completely surrounded by white and creates and ends up in Opencv not detecting all the contours in the image. This is what…
hypadr1v3
  • 543
  • 4
  • 26
-1
votes
3 answers

Threshold image in same way

I want to threshold an image regardless of the color variations. Ex: I want to threshold both these letters in the input and show in output. But when I threshold the image, only one letter is shown. How can I do this using Opencv and…
BuddyRJ
  • 9
  • 1
  • 5
-1
votes
1 answer

How can I threshold an image?

I need to apply thresholding to an image which has already gone through a homomorphic filter. My threshold value must be the mean + standard-deviation of image intensity. I used the thresholding code by Jan Motl as follows: function J =…
user366312
  • 16,949
  • 65
  • 235
  • 452
-2
votes
1 answer

How to read a ".txt" file containing depth values and then convert it into an image using MATLAB?

I want to do depth thresholding and other processing on the depth text files provided in the NTU-Microsoft-Kinect-HandGesture Dataset. It is not possible for me to attach the text file in this question. Thus, it's link is given…
1 2 3
12
13