utils Package
utils Package
sar_debugger Module
statutils Module
-
pyradar.utils.statutils.calculate_cdf_for_pixel(image, histogram, bin_edge, value)[source]
cdf_x(i) = sum_{j=0}^i p_x(j),
-
pyradar.utils.statutils.calculate_pdf_for_pixel(image, histogram, bin_edge, value)[source]
- get the probability of ‘value’ appears in x with:
- P_x(i) = p(x=value) = ni / n
- where:
- x: is the image.
ni: number of occurrences of ‘value’ in the image x.
n: number of pixels of the image.
-
pyradar.utils.statutils.compute_cdfs(image, histogram, bin_edge)[source]
Compute all the cdf values.
Parameters:
image: a np matrix representing the image.
histogram: the histogram of the image.
- Returns:
- cdfs: an array with all the cdfs computed.
-
pyradar.utils.statutils.compute_cfs(histogram)[source]
Compute the cumulative frecuency table for the given np histogram.
system_info Module
-
pyradar.utils.system_info.get_system_info()[source]
Function to collect and display system information.
-
pyradar.utils.system_info.print_info(info)[source]
The the tuple of info gathered by get_system_info and print
it in a nice-for-the-human-eye fashion.
timeutils Module
Utils for calculating time periods for the runs of the algorithms.
-
class pyradar.utils.timeutils.Timer[source]
Bases: object
-
calculate_time_elapsed(print_value=False)[source]
-
restart_timer()[source]
Overwrite the start time of the timer.
-
stop_timer()[source]