Focus Stacking Lab

Focus Stacking Lab

Same-scene focus sweep → aligned composite + source selection map. Small translations only; inspect the result for halos and movement.

1. Source photos

Choose 2–5 nonanimated files, ≤8 MiB and ≤2 megapixels each, same dimensions (at least 64 × 64).

The reference frame defines output dimensions and coordinates; other frames may shift by up to 32 pixels.

2. Build and review

The browser estimates a small translation, compares local detail in each aligned frame and selects a source per pixel.

  • Use a still subject and steady camera; movement can create ghosts.
  • Keep exposure, zoom and pixel dimensions consistent.
  • Original files are never overwritten.

Choose a focus sweep to begin.

Photos remain in this browser. Decoding and PNG export use local canvases; alignment and focus scoring run in a local Web Worker. No photo pixels are sent to the site's API.

Comments & questions

Focus Stacking Lab

Combine two to five photos of the same fixed scene, shot at different focus distances. The local engine estimates small x/y translations relative to a chosen reference, scores each frame's local Laplacian detail, selects the sharpest area and exports both a composite PNG and a color-coded selection map. Possible movement or exposure changes are flagged for review. Your original files stay untouched.

Key features

  • Estimate small translations before stacking
  • Use neighborhood sharpness to select focused regions
  • Download full-resolution composite and per-frame selection map
  • Warn when aligned low-frequency content suggests scene motion or exposure changes
  • Keep original uploaded files unchanged

How to use

  1. Take two to five photos of a motionless scene at different focus distances, keeping framing and exposure consistent.
  2. Upload PNG, JPEG or WebP files with the same pixel dimensions, up to 2 megapixels and 8 MiB each.
  3. Choose the reference frame that should define the output crop, then build the stack locally.
  4. Review the alignment offsets, color map and possible ghost warning.
  5. Download the composite and selection PNGs; inspect edges at full size before use.

Use cases

  • Combine macro photos with different narrow focus planes
  • Show which source frame contributed to each region
  • Check whether a focus sweep moved before sharing a stack
  • Prepare an in-browser reference composite without uploading photos

Frequently asked questions

Does this replace dedicated desktop focus stacking software?

No. It provides bounded local translation alignment and sharpness selection. It does not correct rotation, perspective, scale changes, focus breathing or complex motion. Inspect the saved image at full size.

What does the color map mean?

Each color identifies which uploaded frame supplied the corresponding output pixel after alignment and a small majority filter. The list below the image maps colors to file names and contribution percentages.

How is a ghost warning detected?

After alignment, the tool compares low-frequency brightness between frames in small tiles. It flags a possible movement or exposure mismatch when enough tiles differ. This is a heuristic: small or same-colored moving objects may escape it, and focus changes can produce false alerts.

Why must the photos have equal dimensions?

The version aligns only integer x/y translations while preserving the reference frame's pixel grid. Resizing or warping the sources could disguise mismatch and lower sharpness, so differing dimensions are rejected.

Are my originals modified or uploaded?

No. The browser decodes copies in memory and keeps the selected File objects unchanged. Only two new PNG files are offered for download; image pixels are not posted to this site's API.

Which image formats and limits apply?

Use two to five nonanimated PNG, JPEG or WebP files. Each file is limited to 8 MiB, each decoded image to 2 megapixels, and dimensions must be at least 64 by 64 pixels.

Privacy

Photos remain in this browser. Decoding and PNG export use local canvases; alignment and focus scoring run in a local Web Worker. No photo pixels are sent to the site's API.

References

Related Tools

Merge ImagesImage Difference HeatmapImage Quality LabImage Super ResolutionHDR Exposure MergerPhoto Colorization LabPanorama StitcherSheet Nesting PlannerEdit Decision WorkbenchTeleprompter StudioBilingual Video Study PlayerChord Progression LabMusic Score EditorSubtitle WorkbenchSpatial Audio DesignerMusic Chord Candidate AnalyzerMIDI Piano Roll EditorSample Instrument BuilderImpulse Response LabAudio Waveform EditorDTMF Signal LabSpectrogram Sound PainterAudio Spectrum AnalyzerAudio DenoiserAudio Source SeparatorSound Effect SynthesizerMultitrack Audio MixerAudio Transient SlicerAudio Loop Seam FinderAudio Loudness AuditorAudio Pitch Tempo StudioStereo Anaglyph MakerPhoto Mosaic MakerImage Frequency SpectrumSimilar Photo FinderLenticular InterlacerPBR Texture Map LabPanorama Tour BuilderImage Calibration TargetsImage Steganography LabVector Morph EditorDocument Perspective CorrectorImage Inpainting StudioKnitting Chart EditorSVG Boolean WorkbenchSVG Path EditorSeamless Pattern MakerScreenprint Separation StudioQuilt Layout PlannerPerspective Mockup StudioLow Poly Mesh MakerFont Subset BuilderImage Depth EstimatorCross Stitch Chart MakerAnimation Timeline EditorPixel Paint StudioID photo makerBarcode scannerVideo to GIFVideo Chroma KeyerVideo StabilizerVideo Reframe StudioStop Motion StudioVideo Timecode ConformerVideo Quality ComparatorHLS and DASH Manifest ValidatorVideo Speed Ramp EditorVideo Container InspectorVideo Storyboard MakerVideo Privacy MaskerRotoscope Mask EditorVideo Motion TrackerVideo Frame InterpolatorAudio Description EditorVideo Audio Sync LabVideo TrimmerGIF Frame ExtractorSVG to PNG / JPEGImage to SVG VectorPixel Art ConverterCircle Profile CropPhoto and Polaroid FrameRound Image CornersJPEG EXIF Viewer and RemoverImage Color Vision SimulatorImage to ASCII ArtPhoto CollageInstagram 9-Tile SplitterLong Image SplitterImage CropRotate and Flip ImagesImage FiltersMeme GeneratorScreenshot BeautifierBarcode GeneratorQR Code GeneratorImage CompressorImage ResizeImage ConverterFavicon GeneratorYouTube Thumbnail ExtractorHEIC to JPGSignature & Stamp MakerImage WatermarkGIF MakerImage Color PickerImage to Text (OCR)Photo Blur & MosaicQR Code ScannerMP4 to MP3 ConverterVideo CompressorBackground Remover
Explore all Image/Media tools →Text/Convert →Life/Fun →Dev Tools →