4 Commits
Author SHA1 Message Date
Gromit Park 719bf9408c Add example images to README
Added example images of DCT spectrum to README.
2026-03-12 17:32:45 +09:00
Gromit Park 3868b9fd79 Add files via upload 2026-03-12 17:28:03 +09:00
bemoregtandClaude Sonnet 4.6 bdb786ba43 Fix mask editor: modal paint canvas + improved spectrum preview
Problems fixed:
- JS was in web/js/ causing ../../scripts/app.js to resolve incorrectly;
  moved to web/dct_nodes.js so the relative import path is correct.
- Replaced the broken inline LiteGraph canvas widget with a button widget
  ("Edit Mask") that opens a full-screen modal editor – matching the
  experience of ComfyUI's built-in LoadImage mask editor.
- DCT spectrum preview was nearly black due to dominant DC component;
  switched to 99th-percentile normalisation so all frequency bands are
  visible as the modal canvas background.

Modal controls:
  LMB drag  : paint black  (zero those DCT frequencies)
  RMB drag  : paint white  (restore frequencies)
  Scroll    : brush size
  Clear All : reset to white
  Invert    : invert mask
  Apply     : save to node and close

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 16:50:23 +09:00
bemoregtandClaude Sonnet 4.6 cdaeb04c70 Initial release: ComfyUI DCT custom node pack
Three nodes for 2-D DCT frequency-domain filtering:
- DCT2D: IMAGE → DCT_SPECTRUM + log-scale spectrum preview
- DCTMask: interactive paint-canvas mask editor on the spectrum
- IDCT2D: DCT_SPECTRUM → reconstructed IMAGE

The mask editor embeds a LiteGraph canvas widget that lets users
paint black (remove) or white (restore) frequency regions directly
inside the ComfyUI graph.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 16:34:21 +09:00