synth op• 数据种类:无 → image2d(仅由参数决定的算子 —— 不接受图像或数据输入)
• 调用: import fullseye as fs; fs.ledger.piv_synth_pair(shape, displacement, density=0.02, diameter_px=2.5, seed=0, noise_sigma=0.0, intensity=(0.6, 1.0), background=0.0)(要直接调用实现,import pivops; pivops.piv_synth_pair(shape, displacement, density=0.02, diameter_px=2.5, seed=0, noise_sigma=0.0, intensity=(0.6, 1.0), background=0.0);从台账取用则 opspiv.get("piv_synth_pair"))
• 经台账调用的返回值: fullseye.ledger.piv_synth_pair(...) 只返回声明的 out 类型 image2d 的值(底层函数还会返回辅助信息)。需要被丢弃的部分时,使用 fullseye.ledger.piv_synth_pair.raw(...),或直接调用 pivops.piv_synth_pair。
• 底层返回: (a, b, truth) -> image2d
生成具有已知位移场的图像对。返回 (image_a, image_b, truth)。
先移动粒子再绘制第 2 幅(不是用插值扭曲第 1 幅)。若用插值生成,插值的平滑会造出“PIV 容易测准的图”,等于用对自己有利的输入来测量自己的实现。
Args:
shape: (H, W)。
displacement: 位移的给法。以下之一。
• 长度 2 的序列 —— 均匀平移 (dy, dx) [px]。
• callable(rows, cols) -> (dy, dx) —— 依赖位置的场。参数是粒子连续坐标的数组。
density / diameter_px / seed / intensity / background: 与 piv_synth_particles 相同。
noise_sigma: 对 2 幅分别独立叠加的加性高斯噪声的标准差。
Returns:
(a (H, W), b (H, W), truth (2, H, W))。truth 是逐像素的
真实位移,要落到窗口网格上请用 piv_sample_at_windows。
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者、年份)与用途见上面的族使用指南。
• piv_field_analysis_tour — py -3.11 examples/piv_field_analysis_tour.py
• piv_flow_from_particles — py -3.11 examples/piv_flow_from_particles.py
• poc_strain_history — py -3.11 examples/poc_strain_history.py
image2d 作为输入)piv_cross_correlate · piv_multipass · piv_deform_pass · strain_from_displacement · correlation_quality · speckle_quality
synth)piv_synth_particles · piv_synth_sequence
*Provenance: pivops.py — PIV 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.