Questions tagged [threshold]

The starting point for a new state.

715 questions
0
votes
1 answer

Connecting points in a plot if their distance on one axis is below a certain threshold

I would like to create a plot where connecting lines are only drawn between points that are closer on one axis than a certain treshold. Is this possible in MATLAB? And if so, how?
LukasFun
  • 171
  • 1
  • 4
  • 17
0
votes
1 answer

Python - cumulative sum up to a certain threshold

I have a dataframe named df_sorted (as in belows image). What I need is a cumulative sum of df_sorted['turnover'] grouped by df_sorted['year_week'] that meets the following condition: df_sorted['kg_cum'] < df_sorted['kg_cum_year_week_20%'] The…
Luukv93
  • 339
  • 1
  • 6
  • 19
0
votes
0 answers

Problem using contourslice after thresholding in MATLAB

So I have a one dimensional vector in MATLAB that contains the interpolation of a pde solution over a meshgrid that I defined. I am solving a pde system for a cylinder, and what I want is to plot a contourslice at a given time. I can do this…
0
votes
1 answer

Moving window with two conditions - Matlab

I have a time series data with the amplitude of the values range from 1 to 100. I need to use a moving window (10 seconds duration) and flag/highlight the segments of the data that falls with the threshold range of 91 to 97 for at least 10 seconds…
Ganesh
  • 25
  • 6
0
votes
0 answers

Background removal opencv java, give proper threshold values

I'm new at image processing with opencv. I know java and I'm trying to remove background from an image. I've collected some code from internet and tried to fit it together, and results are quite good but I'm missing something. public class…
0
votes
2 answers

Compare values with a given standard row by row and write just 1 number for each row (exceeds / doesn't exceed the standard)

I have a matrix with many rows. Let's say M = matrix(1:20, nrow = 4, ncol = 5) And I have a threshold variable, e.g. threshold = c(4,7,11,14,17) Now I want R to compare each row in the matrix with this threshold value by value and tell me whether…
Alex M
  • 129
  • 1
  • 7
0
votes
2 answers

How to filter data within certain threshold in Matlab?

To remove data above 1.2 and below -1.2. I use the following function: threshold = [-1.2, 1.2]; y = rmoutliers(y,'percentiles',threshold); But error occurred: Error using isoutlier>parseinput (line 236) 'Percentiles' value must be a sorted…
Cyan
  • 82
  • 9
0
votes
1 answer

Image thresholding not working on Laplacian image

I need to perform a thresholded zero-crossing detection of the filtered image's laplacian. But once the laplacian is applied, it gives error when doing thresholding. Any advice? code: img = cv2.imread('H:/FYP/interim/aniso.jpg') lap =…
shavindip
  • 607
  • 9
  • 27
0
votes
1 answer

Changing the values of a matrix above a threshold in python

I have a matrix : matrix = np.array([[[0,0.5,0.6],[0.9,1.2,0]],[[0,0.5,0.6],[0.9,1.2,0]]]) I want to replace all the values 0.55 < x < 0.95 by 0.55. PS : My question is similar to this question. But the answer does not work in my case.
J.A
  • 285
  • 3
  • 12
0
votes
0 answers

How to tune the threshold for classification using Leave one out in MLR package?

I am using mlr package in R to train my model. I wanted to train my model and do prediction. At the moment I use Recursive Partitioning for Classification and the sample is created using Leave one out method. I want to set the optimum threshold for…
0
votes
2 answers

Threshold comparison with NULL value

We are building a report where some value is compared with thresholds. Logic is if value > lower_threshold and value < upper_threshold then PASS else FAIL However, for some of the parameters upper_thresholds are set as NULL. Which essentially…
Sid
  • 582
  • 3
  • 7
  • 28
0
votes
1 answer

Questions for adaptiveThreshold()

// 1.what's purpose for using _, import cv2 as cv import numpy as np img = cv.imread('sudoku.png',0) _,th1 =cv.threshold(img,127,255,cv.THRESH_BINARY) // 2. What does 2nd value(255), 5th (11), 6th (2) for ? What will happen if we change…
Etsuka
  • 45
  • 7
0
votes
1 answer

How to get a color value from threshold result?

I have made a threshold in the image. Then I want to get the value of the image (black and white). I've tried using frame_hsv.at(x, y) but it can't. Is there another way to do it? Threshold result: I did a threshold to detect objects based…
0
votes
3 answers

How to remove all elements from sorted Ruby array which are closer to its closest neighbour than a limit?

I have a sorted array of real numbers in my Ruby program. I want to remove all the elements which are very "similar": their difference is smaller then a given limit. So finally I want to keep only those elements, which are well distinguishable from…
Konstantin
  • 2,983
  • 3
  • 33
  • 55
0
votes
1 answer

Netflix Eureka do not change Renews threshold

I have two Eureka server with bellow config: eureka.client.registerWithEureka = true eureka.client.fetchRegistry =…
user3611168
  • 335
  • 1
  • 6
  • 27