The starting point for a new state.
Questions tagged [threshold]
715 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…

David Nichero
- 131
- 3
-1
votes
2 answers
How to set threshold values in a numpy array?
I have an array of values and I want to set specific values to integers. Anything below 0.95 set to 0, anything above 1.6 set to 2. How can I set everything between 0.95 and 1.6 to 1?
n1_binary = np.where(n1_img_resize < 0.95, 0,…

rzaratx
- 756
- 3
- 9
- 29
-1
votes
1 answer
How can I apply the hough circle method to a thresholded image?
I currently have a program that can detect colored balls with openCV and I'd like to add the HoughCircle method to make it better.
I had the idea to apply the HoughCircle method on the thresholded image that i got from the inRange method but…

leo0617
- 3
- 3
-1
votes
2 answers
Azure application gateway unhealthy threshold
What does the unhealthy threshold in the Azure Application Gateway configuration represent

Siddarth Rokkam
- 23
- 6
-1
votes
1 answer
Top score from multiple lists
I have a list of lists containing KeyValuePair, sorted on the double, where the int stand for the ID and the double for the Score for that ID. I would like to create an algorithm that gives me the top-k of IDs where the sum of the IDs…

D haverkamp
- 41
- 1
- 7
-1
votes
1 answer
Thresholding matrix
I'm trying to apply filters to a large matrix. The matrix "logcounts1" consists of 8978 rows and 4 columns.
The filter should be applied per row, so I could then select those rows in which at least one value is out of the interval. The filter makes…
-1
votes
2 answers
Print cases with correlations above a threshold
I have a relatively large correlation matrix (77x77). I need to identify cases with correlations above |.60|. Below I produced the correlation dataframe and made all values < |.60| show as NA.
cor_relation = cor(mydata, use="all.obs",…

PsychometStats
- 340
- 1
- 7
- 19
-1
votes
1 answer
Thresholding an image in OpenCV using another image matrix of pixel standard deviations as threshold values
I have two videos, one of a background and one of that same background with a person sitting in the frame. I generated two images from the video of just the background: the mean image of the background video (by accumulating the frames and dividing…
user4028648
-1
votes
1 answer
Find column number that satisfies condition based on another vector
I'm trying to train a classifier for the classes "Hit", "Miss" based on the variables User, Planning Horizon, Material, and some more.
Most of them are categorical variables except for Planning Horizon (integer)
I have unbalanced data so im trying…

user3639100
- 336
- 1
- 11
-1
votes
1 answer
How to get correct threshold level for CFAR (Constant False alarm algorithm)?
I have taken fourier transform for a sinusoidal signal (with noise added). I have to pass the values to the CFAR algorithm (a function) and get back the threshold values in my main matlab file.
After getting the values I plot the same and I get a…

Sack11
- 153
- 11
-1
votes
1 answer
cumulative distribution function, threshold, R
I have daily values of runoff over a period of one month and one specific threshold. How can I find out on how many days the probability is more than 50% that the runoff exceeds that threshold?
Am I right to use the CDF here? But how can I integrate…

N_ni
- 27
- 4
-1
votes
1 answer
raster buffering with values within a given condition in R
I have a raster file containing temperature values and a list of coordinate points as centers of my desired buffers, colored in red like in the figure:
How can I extract buffers around the centroids containing all the neighbor cells matching the…

ADM
- 13
- 5
-1
votes
1 answer
Threshold function does not work OpenCV C++
I just want to do convert a gray image to a binary image. But threshold function gives me a totaly black image as a binary image. I want to get dark gray object.
What is wrong here?
Code:
Mat theFrame = imread("C:\\asdsss.png"); // opencv
Mat…

ffttyy
- 853
- 2
- 19
- 49
-1
votes
1 answer
R values under threshold
I have a daily time series of wind speeds and I would like R to return the average and maximum length of consecutive days beneath a certain threshold.
Example (Threshold = 2 m/s):
df >
date wind_speed
1970-01-01 1
1970-01-02 …

ChrM
- 61
- 3
- 12
-1
votes
1 answer
Retaining and identifying elements in an array which satisfy a threshold in MATLAB
I have a matrix (about 342 by 342) denoted by C_{ij} and I want to identify all indices i,j which satisfy the condition C_{ij} > rho where rho is some fixed value. I am using MATLAB
For example, if I have the matrix C_{ij} as:
C = 1 0.7 0.8
…

Ansh
- 79
- 7