The starting point for a new state.
Questions tagged [threshold]
715 questions
-2
votes
1 answer
Converting a thresholded image into a byte array?
Can someone please tell me about how to convert a thresholded image stored in a 'Bitmap' variable into a byte array and view the byte array in a text box or a text file, in C#?
Can someone please help me with the code to it?
i have threshoded the…

hirosht
- 932
- 2
- 17
- 31
-3
votes
1 answer
Canny algorithm from openCV: What does the Threshold values really mean and why can they be higher than the values of the array?
I am trying to perform the Canny edge detection algorithm of OpenCV to an image array, whose values range from 0 to 255.
I am struggling to understand the role of the thresholds in the cv2.canny() function because for example, when I use threshold…

LuisFigas
- 3
- 3
-3
votes
1 answer
Make a data frame of two columns based on values less than a threshold value in column 2 in r
I want to make a data frame that only has entries below a certain defined threshold that is compared with column b, such that entry "OP2775iib SAV OP2958i_b POR" is excluded.
I tried this code:
less_than_threshold <- data.frame(which(data[data$b <…

Deon Bakkes
- 81
- 7
-3
votes
1 answer
ValueError: could not convert string to float:threshold
I am having problem with the below command,
python signal_arduino_relax.py -t threshold
Setting threshold to threshold
While doing this, I got the below mentioned error:
Traceback (most recent call last):
File "signal_arduino_relax.py", line…

Emre Zengin
- 1
- 1
- 4
-3
votes
1 answer
The best threshold for a Mergesort to switch to an insertion sort at?
I've been working on a piece of java code to determine the best threshold for a mergesort to switch to insertion sort at and my results have been less than satisfactory.
The tests I'm running take nearly an hour and produce data which doesn't…

Ysehporp
- 11
- 3
-3
votes
1 answer
How to to estimate when time a series reaches a specific value?
Assume we have regression lines for these time series, I want to know which of them more likely gets to a certain value first (e.g., 4), or the probability distribution of time to reach a value.
date series1 series2
01-04 2 …

khodayar J
- 914
- 8
- 16
-4
votes
1 answer
How come bisect doesn't find my intent?
I'm using bisect to find first occurence of datapoint > -6, but when I run my script it only finds the second (and last) occurence.
import bisect
kk = [-9, -6, -4, -6, -8, -8, -7, -7, -6, -6, -5]
first = bisect.bisect(kk, -6)
…

Blochio
- 11
-4
votes
1 answer
Facebook App Spam Threshold
What will happen if the app cross the spam threshold? Will be app be taken down and be blacklisted?

Kaye Cheng
- 1
- 1
-5
votes
1 answer
Filtering subjects below accuracy threshold in R
I have a data frame containing a list of subjects below a certain accuracy threshold (i.e 50% incorrect): 1.
I have another data frame containing all subjects (accurate and inaccurate) with all their data. Importantly, there are multiple rows per…

Sumer Vaid
- 15
- 4
-5
votes
1 answer
Use Loop to print out each monthly rent, Threshold
Use a Loop to print out each monthly rental from the array that falls below the user entered threshold
This was a question I received from my lecturer, I require help because I simply have no idea where to even start. Here is my complete code for…

Jake Grim
- 41
- 7