nanodevice_gdsalign

Align microscope images to GDS templates via lithographic markers and commit to KLayout.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, scipy, cv2, gdstk, and includes scripts (resource) components.

What problem does it solve?

Align microscope images to a fixed GDS fabrication template by detecting lithographic markers and computing an image-to-GDS transform, then commit warped imagery and transformed contours into KLayout for fabrication pipelines.

Core Features & Use Cases

  • Marker-based alignment that computes similarity transforms between image markers and GDS markers.
  • Warp full-stack microscope images into GDS coordinates and output overlays for KLayout integration.
  • KLayout-based commit flow: load GDS, overlay warped image, and insert transformed contours on design layers.

Quick Start

Run the gdsalign workflow on a sample image to detect markers, compute the alignment, warp the image, and commit the results into KLayout.

Frequently Asked Questions about nanodevice_gdsalign

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

FAQPage Schema
How do I align microscope images to a GDS fabrication template using lithographic markers?

Automated image-to-GDS alignment detects lithographic marker pairs in the GDS template, computes the similarity transform between the image and GDS coordinates, and outputs warped images with transformed contours for KLayout integration.

Can I overlay warped microscope images onto GDS layers in KLayout?

Yes, the KLayout commit flow loads the GDS file, overlays the warped microscope image in GDS coordinates, and inserts transformed contours directly onto design layers for fabrication pipeline visualization.

What Python dependencies are required for GDS marker detection and image alignment?

GDS marker detection and image alignment require numpy, scipy, cv2 (OpenCV), and gdstk, executed through Python scripts for marker extraction, transformation computation, and KLayout commit.

Does image-to-GDS alignment support reflection transforms for mirrored microscope images?

Yes, the alignment computation handles potential reflection by calculating a full similarity transform between detected image markers and GDS markers, encompassing translation, rotation, scaling, and mirror operations.

What is the workflow for detecting lithographic markers and warping full-stack microscope images into GDS coordinates?

The workflow runs sequentially: extract marker pairs from the GDS template, detect corresponding markers in the microscope image, compute the similarity transform, warp the full-stack image into GDS coordinates, and commit overlays to KLayout.

When do I need automated image alignment for nanofabrication steps?

Automated image alignment is needed when reproducible nanofabrication requires registering microscope images to a fixed GDS template, enabling precise overlay of fabricated features against design layers in KLayout.