image.commerce\commerce_scene.mbt

100% · 0 / 0 points · 350 lines

Background color reports the state of each line. Underlined characters mark exact instrumented byte offsets; hover them to inspect the visit count.

  1. 1// Generated by scripts/gen_scenes.mjs from docs/scenes.json + pkg.generated.mbti.
  2. 2// DON'T EDIT IT —— 改归属请改 docs/scenes.json,然后 node scripts/gen_scenes.mjs。
  3. 3// 电商场景(裁切 / 调色 / 增强 / 水印 / 码图 / 画质):6 个原子包合成为一个入口,
  4. 4// 下游 `moon add walkzzz/image.commerce` 后不必再记子包路径。
  5. 5// 本包零实现:全部是同签名再导出(`pub using`),实现与测试仍在原子包内。
  6. 6
  7. 7///|
  8. 8pub using @transform {type AffineMatrix}
  9. 9
  10. 10///|
  11. 11pub using @transform {type PerspectiveMatrix}
  12. 12
  13. 13///|
  14. 14pub using @transform {
  15. 15 build_gaussian_pyramid,
  16. 16 build_gaussian_pyramid_16,
  17. 17 build_gaussian_pyramid_f,
  18. 18 build_laplacian_pyramid,
  19. 19 build_laplacian_pyramid_16,
  20. 20 build_laplacian_pyramid_float,
  21. 21 compute_energy,
  22. 22 compute_energy_16,
  23. 23 compute_energy_f,
  24. 24 crop,
  25. 25 crop_16,
  26. 26 crop_f,
  27. 27 crop_region,
  28. 28 draw_circle,
  29. 29 draw_circle_16,
  30. 30 draw_circle_f,
  31. 31 draw_copy,
  32. 32 draw_line,
  33. 33 draw_line_16,
  34. 34 draw_line_f,
  35. 35 draw_over,
  36. 36 draw_polygon,
  37. 37 draw_polygon_16,
  38. 38 draw_polygon_f,
  39. 39 draw_rectangle,
  40. 40 draw_rectangle_16,
  41. 41 draw_rectangle_f,
  42. 42 find_horizontal_seam,
  43. 43 find_vertical_seam,
  44. 44 flip_horizontal,
  45. 45 flip_horizontal_16,
  46. 46 flip_horizontal_f,
  47. 47 flip_vertical,
  48. 48 flip_vertical_16,
  49. 49 flip_vertical_f,
  50. 50 get_affine_transform,
  51. 51 get_perspective_transform,
  52. 52 get_rotation_matrix_2d,
  53. 53 multi_band_blend,
  54. 54 multi_band_blend_16,
  55. 55 multi_band_blend_f,
  56. 56 pyr_down,
  57. 57 pyr_down_16,
  58. 58 pyr_down_f,
  59. 59 pyr_up,
  60. 60 pyr_up_16,
  61. 61 pyr_up_f,
  62. 62 remove_horizontal_seam,
  63. 63 remove_horizontal_seam_16,
  64. 64 remove_horizontal_seam_f,
  65. 65 remove_vertical_seam,
  66. 66 remove_vertical_seam_16,
  67. 67 remove_vertical_seam_f,
  68. 68 resize_16,
  69. 69 resize_f,
  70. 70 resize_subsample,
  71. 71 resize_to_contain,
  72. 72 resize_to_cover,
  73. 73 rotate,
  74. 74 rotate_180,
  75. 75 rotate_180_16,
  76. 76 rotate_180_f,
  77. 77 rotate_270,
  78. 78 rotate_270_16,
  79. 79 rotate_270_f,
  80. 80 rotate_90,
  81. 81 rotate_90_16,
  82. 82 rotate_90_f,
  83. 83 seam_carve_resize,
  84. 84 seam_carve_resize_16,
  85. 85 seam_carve_resize_f,
  86. 86 thumbnail,
  87. 87 thumbnail_budgeted,
  88. 88 thumbnail_dims,
  89. 89 transpose_16,
  90. 90 transpose_f,
  91. 91 warp_affine,
  92. 92 warp_affine_16,
  93. 93 warp_affine_f,
  94. 94 warp_perspective,
  95. 95 warp_perspective_16,
  96. 96 warp_perspective_f,
  97. 97}
  98. 98
  99. 99///|
  100. 100pub using @color {type Colormap}
  101. 101
  102. 102///|
  103. 103pub using @color {
  104. 104 adaptive_threshold_gaussian,
  105. 105 adaptive_threshold_gaussian_16,
  106. 106 adaptive_threshold_gaussian_f,
  107. 107 adaptive_threshold_mean,
  108. 108 adaptive_threshold_mean_16,
  109. 109 adaptive_threshold_mean_f,
  110. 110 adjust_brightness,
  111. 111 adjust_brightness_16,
  112. 112 adjust_brightness_f,
  113. 113 adjust_contrast,
  114. 114 adjust_contrast_16,
  115. 115 adjust_contrast_f,
  116. 116 adjust_gamma,
  117. 117 adjust_gamma_16,
  118. 118 adjust_gamma_f,
  119. 119 adjust_hue,
  120. 120 adjust_saturation,
  121. 121 apply_colormap,
  122. 122 clahe,
  123. 123 cmyk_to_rgb,
  124. 124 cmyk_to_rgb_16,
  125. 125 cmyk_to_rgb_f,
  126. 126 dehaze,
  127. 127 dehaze_16,
  128. 128 dehaze_f,
  129. 129 floyd_steinberg,
  130. 130 floyd_steinberg_16,
  131. 131 floyd_steinberg_f,
  132. 132 gamma_tonemap,
  133. 133 gamma_tonemap_16,
  134. 134 gamma_tonemap_f,
  135. 135 guided_filter,
  136. 136 guided_filter_16,
  137. 137 guided_filter_f,
  138. 138 hsl_to_rgb,
  139. 139 hsl_to_rgb_16,
  140. 140 hsl_to_rgb_f,
  141. 141 hsv_to_rgb,
  142. 142 hsv_to_rgb_16,
  143. 143 hsv_to_rgb_f,
  144. 144 invert,
  145. 145 invert_16,
  146. 146 invert_f,
  147. 147 kmeans_quantize,
  148. 148 kmeans_quantize_16,
  149. 149 kmeans_quantize_f,
  150. 150 lab_to_rgb,
  151. 151 lab_to_rgb_16,
  152. 152 lab_to_rgb_f,
  153. 153 median_cut,
  154. 154 median_cut_16,
  155. 155 median_cut_f,
  156. 156 msr,
  157. 157 msr_16,
  158. 158 msr_f,
  159. 159 msrcr,
  160. 160 msrcr_16,
  161. 161 msrcr_f,
  162. 162 premultiply_alpha,
  163. 163 premultiply_alpha_16,
  164. 164 premultiply_alpha_f,
  165. 165 reinhard_tonemap,
  166. 166 reinhard_tonemap_16,
  167. 167 reinhard_tonemap_f,
  168. 168 rgb_to_cmyk,
  169. 169 rgb_to_cmyk_16,
  170. 170 rgb_to_cmyk_f,
  171. 171 rgb_to_hsl,
  172. 172 rgb_to_hsl_16,
  173. 173 rgb_to_hsl_f,
  174. 174 rgb_to_hsv,
  175. 175 rgb_to_hsv_16,
  176. 176 rgb_to_hsv_f,
  177. 177 rgb_to_lab,
  178. 178 rgb_to_lab_16,
  179. 179 rgb_to_lab_f,
  180. 180 rgb_to_xyz,
  181. 181 rgb_to_xyz_16,
  182. 182 rgb_to_xyz_f,
  183. 183 rgb_to_ycbcr,
  184. 184 rgb_to_ycbcr_16,
  185. 185 rgb_to_ycbcr_f,
  186. 186 ssr,
  187. 187 ssr_16,
  188. 188 ssr_f,
  189. 189 threshold_otsu,
  190. 190 threshold_otsu_16,
  191. 191 threshold_otsu_f,
  192. 192 to_grayscale,
  193. 193 to_grayscale_16,
  194. 194 to_grayscale_f,
  195. 195 to_rgb,
  196. 196 to_rgb_16,
  197. 197 to_rgb_f,
  198. 198 to_rgba,
  199. 199 to_rgba_16,
  200. 200 to_rgba_f,
  201. 201 unpremultiply_alpha,
  202. 202 unpremultiply_alpha_16,
  203. 203 unpremultiply_alpha_f,
  204. 204 xyz_to_rgb,
  205. 205 xyz_to_rgb_16,
  206. 206 xyz_to_rgb_f,
  207. 207 ycbcr_to_rgb,
  208. 208 ycbcr_to_rgb_16,
  209. 209 ycbcr_to_rgb_f,
  210. 210}
  211. 211
  212. 212///|
  213. 213pub using @enhance {type DehazeConfig}
  214. 214
  215. 215///|
  216. 216pub using @enhance {type DenoiseAlgorithm}
  217. 217
  218. 218///|
  219. 219pub using @enhance {type DenoiseConfig}
  220. 220
  221. 221///|
  222. 222pub using @enhance {type DenoiseResult}
  223. 223
  224. 224///|
  225. 225pub using @enhance {type EnhancementAlgorithm}
  226. 226
  227. 227///|
  228. 228pub using @enhance {type EnhancementResult}
  229. 229
  230. 230///|
  231. 231pub using @enhance {type InpaintConfig}
  232. 232
  233. 233///|
  234. 234pub using @enhance {type NlmConfig}
  235. 235
  236. 236///|
  237. 237pub using @enhance {type NoiseType}
  238. 238
  239. 239///|
  240. 240pub using @enhance {
  241. 241 bilateral_filter_denoise,
  242. 242 calculate_brightness,
  243. 243 calculate_contrast,
  244. 244 calculate_noise_level,
  245. 245 calculate_sharpness,
  246. 246 create_default_denoise_config,
  247. 247 create_rect_mask,
  248. 248 dark_channel,
  249. 249 dehaze_advanced,
  250. 250 dehaze_default_config,
  251. 251 dehaze_recover,
  252. 252 denoise,
  253. 253 denoise_algorithm_to_string,
  254. 254 denoise_bilateral,
  255. 255 denoise_image,
  256. 256 denoise_median,
  257. 257 denoise_nlm,
  258. 258 denoise_report_to_string,
  259. 259 enhance_image_advanced,
  260. 260 estimate_atmospheric_light,
  261. 261 estimate_transmission,
  262. 262 gamma_correction_enhance,
  263. 263 gaussian_filter_denoise,
  264. 264 guided_filter_image,
  265. 265 histogram_equalization_enhance,
  266. 266 inpaint_advanced,
  267. 267 inpaint_default_config,
  268. 268 mean_filter_denoise,
  269. 269 median_filter_denoise,
  270. 270 nlm_default_config,
  271. 271 remove_small_objects,
  272. 272 remove_watermark,
  273. 273 unsharp_mask_enhance,
  274. 274}
  275. 275
  276. 276///|
  277. 277pub using @barcode {type BarcodeConfig}
  278. 278
  279. 279///|
  280. 280pub using @barcode {type BarcodeResult}
  281. 281
  282. 282///|
  283. 283pub using @barcode {type BarcodeType}
  284. 284
  285. 285///|
  286. 286pub using @barcode {type Code128Charset}
  287. 287
  288. 288///|
  289. 289pub using @barcode {type QrDecodeResult}
  290. 290
  291. 291///|
  292. 292pub using @barcode {type QrFinderPattern}
  293. 293
  294. 294///|
  295. 295pub using @barcode {
  296. 296 barcode_default_config,
  297. 297 decode_barcode,
  298. 298 decode_code128,
  299. 299 decode_code39,
  300. 300 decode_ean13,
  301. 301 decode_linear_barcode,
  302. 302 decode_qrcode,
  303. 303 decode_qrcode_full,
  304. 304 decode_upca,
  305. 305 detect_qr_finder_patterns,
  306. 306 reed_solomon_decode,
  307. 307}
  308. 308
  309. 309///|
  310. 310pub using @watermark {type WatermarkConfig}
  311. 311
  312. 312///|
  313. 313pub using @watermark {
  314. 314 batch_embed_watermark,
  315. 315 embed_text_watermark,
  316. 316 embed_watermark_lsb,
  317. 317 extract_text_watermark,
  318. 318 extract_watermark_lsb,
  319. 319 watermark_default_config,
  320. 320 watermark_psnr,
  321. 321 watermark_robustness_test,
  322. 322}
  323. 323
  324. 324///|
  325. 325pub using @quality {type QualityMetrics}
  326. 326
  327. 327///|
  328. 328pub using @quality {type QualityReport}
  329. 329
  330. 330///|
  331. 331pub using @quality {type QualityThreshold}
  332. 332
  333. 333///|
  334. 334pub using @quality {
  335. 335 compute_diff_image,
  336. 336 compute_mae,
  337. 337 compute_mse,
  338. 338 compute_psnr,
  339. 339 compute_quality_metrics,
  340. 340 compute_ssim,
  341. 341 compute_ssim_windowed,
  342. 342 compute_volume_ratio,
  343. 343 default_quality_threshold,
  344. 344 evaluate_quality,
  345. 345 images_equal,
  346. 346 quality_report_to_string,
  347. 347 quality_verdict,
  348. 348}
  349. 349
  350. 350// 冲突清单:无(场景内符号名互不重叠)