cModules.PBRTiler.TilerMainWindow module#
- class PBRRenderer(parent=None)[source]#
Bases:
QLabel- staticMetaObject = PySide6.QtCore.QMetaObject("PBRRenderer" inherits "QLabel": )#
- calculate_seam_energy_offset(luma_map)[source]#
- Uses Phase Correlation / FFT to find optimal tiling offset.luma_map: 2D array [0,1]Returns optimal (dx, dy) offset (normalized 0..1)
- frankot_chellappa(np_normal_map)[source]#
- Frankot-Chellappa algorithm to convert a Normal map to a Height map.np_normal_map: numpy array shape (H, W, 3) in range [0, 1]Returns: Height map numpy array shape (H, W) mapped roughly to [0, 1]