# Realistic Skin Blend

> Preserve natural skin pores and texture when compositing aesthetic surgery simulations to avoid plastic or AI-smoothed looks. Use when simulated results look fake, 皮肤太假, plastic skin, or texture preservation for cosmetic previews.

- Skill: `freakyglorian-create/realistic-skin-blend` (Agent Skill)
- Install (CLI): `npx skillmds@latest add freakyglorian-create/realistic-skin-blend`
- Raw SKILL.md: https://api.skillmd.com/api/skills/freakyglorian-create/realistic-skin-blend/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: freakyglorian-create (https://skillmd.com/u/freakyglorian-create)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/freakyglorian-create/realistic-skin-blend

---


# Realistic Skin Blend

The #1 reason patients distrust simulations: **waxy, airbrushed skin**. This skill keeps pores, fine lines, and natural imperfections.

## Anti-Patterns

- ❌ Full-face Gaussian blur after warp
- ❌ High denoise SD inpaint (>0.45) on entire face
- ❌ Uniform skin tone flattening
- ❌ Removing moles/freckles patient didn't ask to remove

## Pipeline

1. Warp geometry on **structure layer** (landmarks only)
2. Extract **high-frequency texture** from original:
   ```python
   blur = cv2.GaussianBlur(img, (0,0), 3)
   texture = img.astype(float) - blur.astype(float)
   ```
3. Apply warp to low-frequency (color/shape) only
4. Re-add texture: `result = warped_low + original_texture`
5. **Poisson blend** boundary at ROI edge:
   ```python
   cv2.seamlessClone(src, dst, mask, center, cv2.NORMAL_CLONE)
   ```

## Frequency Separation (preferred)

| Layer | Content | Edit allowed |
|-------|---------|--------------|
| Low | Color, shadow, volume | Yes (warp, tone) |
| High | Pores, fine hair, micro-wrinkles | Copy from original |

## Parameter Guardrails

- Texture reattach strength: 0.85–1.0
- Optional subtle grain injection: 1–2% noise if over-smoothed
- Preserve asymmetry: don't mirror-fix natural asymmetry unless requested

## Script

```bash
python scripts/texture_preserve.py before.jpg warped_raw.jpg --output natural.jpg --roi nose
```

ROI options: `nose`, `lip`, `jaw`, `full` (full uses frequency separation globally)

## QA Checklist

- [ ] Zoom 200%: pores visible in cheek (unchanged region)
- [ ] No halo at nose bridge boundary
- [ ] Moles/freckles in unchanged areas intact
- [ ] Lighting gradient on forehead preserved

