MCPcopy Create free account

hub / github.com/YinchuanLi05/GPRForce / functions

Functions176 in github.com/YinchuanLi05/GPRForce

↓ 1 callersMethodtoggle_ai_helper
顶部按钮控制:显示 / 隐藏 AI 小助手面板。
ui/main_window.py:1330
↓ 1 callersMethodupdate_bg_material_combo
根据当前 in_info 填充背景材料下拉框,并选择一个合理的默认值。
ui/main_window.py:1647
↓ 1 callersMethodupdate_preview
(self)
ui/dialogs.py:132
Method__init__
(self)
core/i18n.py:232
Method__init__
(self, raw_data, dt, dx, params)
core/worker.py:23
Method__init__
(self, parent=None)
ui/main_window.py:59
Method__init__
(self, parent=None)
ui/main_window.py:85
Method__init__
(self, parent=None, image_path=None)
ui/main_window.py:119
Method__init__
(self, parent=None, image_path=None)
ui/main_window.py:164
Method__init__
(self)
ui/controls.py:18
Method__init__
(self, gpr_data, parent=None)
ui/model_view.py:18
Method__init__
(self, trace_data, dt, trace_idx, parent=None)
ui/ascan_view.py:8
Method__init__
(self, data_shape, parent=None)
ui/dialogs.py:14
Method__init__
(self, gpr_data, parent=None)
ui/model3d_pv.py:204
Method__init__
(self, parent=None)
ui/canvas.py:21
Method__post_init__
(self)
core/data_model.py:56
Method_on_pick_point
(self, *args)
ui/model3d_pv.py:580
Method_roi_reset
重置 ROI 控件到默认(全关)
ui/controls.py:220
Method_run_pipeline_internal
(self)
ui/main_window.py:2017
Function_safe_int
(x: Any, default: int)
io_module/loader.py:43
Method_wrapped
()
ui/main_window.py:384
Methodadd_with_label
(mesh: pv.DataSet, mat_name: str, color: str, opacity: float)
ui/model3d_pv.py:373
Functionagc
自动增益控制 (AGC) 参数 ---- data : ndarray, shape (Nt, Nx) dt : float 采样间隔 (秒)。 window_ns : float AGC 窗口长度 (纳秒)。
algorithms/gain.py:62
Functionapply_t0_shift
根据公共 t0 索引,把整张 B 扫沿时间轴上移
algorithms/basic.py:95
Functionbandpass_filter
Butterworth 带通滤波 (零相位 filtfilt) f_low, f_high 单位: Hz
algorithms/filters.py:24
Methodcalculate_dt_from_depth
根据公式反推 dt: Depth = (v * t) / 2 t = (2 * Depth) / v dt = t / Nt v = c / sqrt(eps)
ui/dialogs.py:108
Methodchange_language
(self, index: int)
ui/main_window.py:778
Methodchoose_pen_color
弹出颜色选择器,改变画笔颜色。
ui/model3d_pv.py:186
Methodclear_annotations
(self)
ui/model3d_pv.py:718
Methodclear_brush
(self)
ui/main_window.py:2869
Methodclear_canvas
(self)
ui/canvas.py:91
Functioncrop_by_index
按索引裁剪 (time, trace)。None 表示不裁剪该维度。
algorithms/basic.py:185
Functiondc_shift_remove
DC shift 去直流:利用前 n_head 个样点估计直流偏置
algorithms/basic.py:54
Methoddepth_axis
基于 eps_bg 和 dt 估算深度轴(单位 m)
core/data_model.py:69
Functiondepth_to_sample
把深度(m)换算为样点索引(与深度轴一致:depth = t_ns * v / 2)。
algorithms/basic.py:115
Functiondewow
去低频漂移 (原有逻辑)
algorithms/basic.py:36
Methodedit_physical_params
弹出对话框,允许用户重新修改 dt, dx, eps_bg 等物理参数。
ui/main_window.py:1842
Functionenvelope_detection
Hilbert 包络提取
algorithms/basic.py:108
Functionestimate_common_t0
粗略公共 time-zero 估计: 返回 t0_idx (样点索引, int)
algorithms/basic.py:68
MethodeventFilter
(self, obj, event)
ui/main_window.py:833
Functionexport_image
导出当前画布为图片 (png/jpg/pdf)。 canvas: matplotlib FigureCanvas 对象
io_module/exporter.py:82
Functionexport_reproducible_package
导出“可复现包” (zip): - meta.json: 物理参数、形状、来源等 - params.json: 当前处理参数(UI 参数快照) - data/raw.npy: 原始数据 (可选) - data/heavy.npy: 重处理后的
io_module/exporter.py:104
Functionexport_to_mat
导出处理后的数据为 MATLAB (.mat)。
io_module/exporter.py:57
Functionexport_to_npy
导出处理后的数据为 NumPy (.npy)。 保存为 dict(便于二次加载不丢物理参数): - data: processed_data (Nt, Nx) - dt, dx, eps_bg, time_window, fc - roi(可选
io_module/exporter.py:25
Functionfk_filter_basic
简单 2D F-K 滤波 (time × x -> f × kx): 参数 ---- data : ndarray (Nt, Nx) 实数数据,time × trace。 dt : float 时间采样间隔 (秒)。
algorithms/fk.py:50
MethodhideEvent
(self, e)
ui/main_window.py:204
Methodin_path_obj
(self)
core/data_model.py:90
Functionlowpass_filter
低通滤波 (FIR)
algorithms/filters.py:12
Methodmake_tool_button
(icon, text, slot, sound='click')
ui/main_window.py:378
MethodmouseMoveEvent
(self, event)
ui/model3d_pv.py:158
MethodmousePressEvent
(self, event)
ui/model3d_pv.py:151
MethodmouseReleaseEvent
(self, event)
ui/model3d_pv.py:166
Functionmute_band_by_index
在时间轴 [i0:i1] 做静音(置零),可选 taper(过渡样点数) 做平滑边缘。
algorithms/basic.py:140
Functionmute_top_window
顶部静音:把最开始的一段时间窗置零,用于抑制直达波 / 天线耦合等。 参数 ---- data : ndarray, shape (Nt, Nx) B 扫数据 (time × trace) dt : float 采样间隔 (
algorithms/basic.py:7
Methodon_annotate_clicked
(self, checked: bool)
ui/model3d_pv.py:496
Methodon_brush_toggled
左侧面板勾选/取消“启用画笔”:交由统一的交互模式管理。
ui/main_window.py:2864
Methodon_canvas_click
画布点击响应:统一使用当前控件参数作为坐标转换基准
ui/main_window.py:2928
Methodon_command_entered
命令行回车时触发
ui/main_window.py:952
Methodon_fit_scroll
滚轮调整开口(改变拟合速度 v)
ui/main_window.py:3060
Methodon_params_changed
(self)
ui/main_window.py:2011
Methodon_view_mode_changed
(self, index: int)
ui/main_window.py:2920
Methodout_path
(self)
core/data_model.py:86
MethodpaintEvent
(self, event)
ui/main_window.py:132
MethodpaintEvent
(self, event)
ui/model3d_pv.py:126
Functionremove_background
根据方法选择去背景算法
algorithms/spatial.py:5
Methodreset_processing
把 processed_data 重置成 raw_data 的拷贝
core/data_model.py:80
Methodrun
执行处理流水线
core/worker.py:31
Functionsample_to_depth
样点索引 -> 深度(m)。
algorithms/basic.py:129
Functionsavgol_smooth_x
横向平滑 (Savitzky-Golay)
algorithms/filters.py:5
Methodtime_axis
(self)
core/data_model.py:62
Functiontime_gain
时间增益: g(t) = t_ns^alpha * exp(beta * t_ns) 参数 ---- data : ndarray, shape (Nt, Nx) B 扫数据,time × trace。 tvec : ndarray, sh
algorithms/gain.py:5
Methodtoggle_pen_mode
切换截图画笔模式(与文字标注互斥)
ui/model3d_pv.py:638
Methodtoggle_sound
顶部喇叭按钮:开/关 UI 音效反馈。
ui/main_window.py:706
Methodview_xy
(self)
ui/model3d_pv.py:474
Methodview_xz
(self)
ui/model3d_pv.py:481
Methodview_yz
(self)
ui/model3d_pv.py:488
← previous101–176 of 176, ranked by callers