nanodevice_flakedetect_combine

Combine per-material detections into unified full_stack coordinates and traces.json.

32|6|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/caidish/KlayoutClaw --skill nanodevice-flakedetect-combine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nanodevice_flakedetect_combine
Source: https://github.com/caidish/KlayoutClaw/tree/main/skills/nanodevice_flakedetect_combine
Command: npx skills add https://github.com/caidish/KlayoutClaw --skill nanodevice-flakedetect-combine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires opencv-python, numpy, shapely, and includes scripts (resource) components.

What problem does it solve?

Transforms per-material detections into a single full_stack coordinate system, producing a unified traces.json and overlay-ready imagery for review and downstream design tasks.

Core Features & Use Cases

  • Coordinate transforms: bottom_part back to full_stack via inverted warp; top_part via direct warp; footprint clipping for graphene and pass-throughs for hBN layers.
  • Unified traces: extract and assemble contours into a traces.json with material metadata and area measurements.
  • Overlays and diagnostics: generate overlay images and a combine_report.json with transform_summary and per-material diagnostics for downstream steps.

Quick Start

Run transform.py after detect and align steps to generate traces.json and overlay outputs.

Frequently Asked Questions about nanodevice_flakedetect_combine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I combine per-material detections into a unified coordinate system?

To combine per-material detections into a unified coordinate system, apply per-material coordinate transforms like inverted warp for bottom layers and direct warp for top layers. This extracts contours and outputs a unified traces.json file with material metadata and area measurements.

How do I generate overlay images from nanodevice detection data?

To generate overlay images from nanodevice detection data, run the transform script after detection and alignment steps. This produces overlay-ready imagery alongside a combine_report.json containing transform summaries and per-material diagnostics for visualization.

Do I need OpenCV and Shapely to transform nanodevice traces?

Yes, you need OpenCV, NumPy, and Shapely to transform nanodevice traces. These dependencies are required to execute per-material coordinate transforms, extract contours, perform footprint clipping, and generate the unified traces.json output.

What is the best way to extract contours and build a unified traces.json for multiple materials?

The best way to extract contours and build a unified traces.json is to apply per-material coordinate transforms into a full_stack system. This approach handles layer-specific clipping like footprints for graphene and pass-throughs for hBN, appending material metadata and area measurements.

Why does my traces.json output have misaligned coordinates across different material layers?

Misaligned coordinates in traces.json occur when per-material detections are not properly transformed into the full_stack coordinate system. Ensure you apply the inverted warp for bottom_part layers, direct warp for top_part, and correct footprint clipping for materials like graphene.