| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Fix W computation causing PICCS to hang | 28 天前 | |
Update data location | 5 年前 | |
torch bindings test using pytest framework | 1 年前 | |
Python: match the MATLAB MSSIM formula in Measure_Quality (#783) The MSSIM branch used K1*d**2 and K2*d**2 in the denominators of the luminance and contrast terms, and (K2*d**2)/2 in the structure term, while the numerators of the same expressions already use (K1*d)**2 and (K2*d)**2. MSSIM.m squares the whole product in every one of those six places. K2 was also 0.02 here against 0.03 in MSSIM.m, and the standard deviations came from np.std, which normalises by N, while delta on the next line and MATLAB's std both normalise by N-1. Squaring only K*d leaves the stabilisation term 1/K1 = 100 times too large in l; in c and s, with the K2 difference on top, 0.02*d**2 is about 22 times the (0.03*d)**2 of MSSIM.m. So l, c and s never reach 1: on master, MSSIM(x, x) * N is 0.79 for uniform noise and 0.57 for a sparse phantom instead of 1, and the ceiling depends on the image, so values are not comparable across datasets. Fixes CERN/TIGRE#782 | 16 天前 | |
Add computeCOR: Python parity with MATLAB/Utilities/computeCOR.m The MATLAB toolbox has had computeCOR.m (a port of SophiaBeads' centre_geom.m; T. Liu, Optical Engineering 2009) for years; the Python bindings have no centre-of-rotation estimator. This adds one, checked against the MATLAB implementation line by line - the arrays are transposed relative to it throughout (MATLAB holds (detector, angle), Python (angle, detector)), and the module docstring records the mapping. One deliberate divergence, matching MATLAB's intent rather than a literal mask translation: MATLAB's length(find(test > 0)) is the count of valid pixels, so its score is a mean over valid conjugate rays. A boolean-mask len() would be the angle count - constant across candidates - which turns the search into a sum minimisation that rewards candidates whose reflected rays fall off the detector. Validated by recovery: a COR planted via geo.COR at 0 / +-0.5 / +1.5 / -2.0 mm comes back within 0.1 mm (test tolerance 0.2 mm). Tests: Python/tests/test_compute_cor.py (6). | 1 个月前 | |
torch bindings test using pytest framework | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 28 天前 | ||
| 5 年前 | ||
| 1 年前 | ||
| 16 天前 | ||
| 1 个月前 | ||
| 1 年前 |