roxify 1.9.7 → 1.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Cargo.toml
CHANGED
package/native/reconstitution.rs
CHANGED
|
@@ -349,7 +349,7 @@ pub fn crop_and_reconstitute(png_data: &[u8]) -> Result<Vec<u8>, String> {
|
|
|
349
349
|
// Filtre : la zone encodée NN a des blocs monochromes → intra très bas
|
|
350
350
|
// Zone de fond aléatoire → intra ≈ lw × n_scan × 0.99 >> 0
|
|
351
351
|
// Seuil : lw/8 × n_scan pour permettre ≈ lw/8 pixels parasites
|
|
352
|
-
let intra_threshold = ((lw as u32 /
|
|
352
|
+
let intra_threshold = ((lw as u32 / 2 + 3) * n_scan).max(n_scan * 3);
|
|
353
353
|
|
|
354
354
|
if intra_final > intra_threshold {
|
|
355
355
|
continue;
|
package/package.json
CHANGED
|
Binary file
|