Techniques

Zerene Stacker: A Guide to PMAX and DMAP

Focus stacking has become essential in macro and microscopy photography, allowing photographers to create images with remarkable depth of field. Zerene Stacker, one of the top software tools for focus stacking, offers two powerful stacking methods: PMAX and DMAP. Each method has unique strengths and ideal use cases, making it valuable to understand their differences to achieve the best results for any subject.

Zerene Stacker’s Interface

PMAX (Pyramid Maximum Contrast)

PMAX is Zerene Stacker’s “pyramid-based maximum contrast” method, designed to capture and emphasize the finest details in a scene. This algorithm analyzes images in multiple layers or “pyramids,” selecting pixels with the highest local contrast to build the final image.

How PMAX Works

  1. The software scales each source image down through several steps, forming a “pyramid” of resolution levels.
  2. At each level, it measures the local contrast around every pixel.
  3. For each pixel location, it chooses the source image showing the highest contrast.
  4. The final image combines these high-contrast selections from all levels.

Advantages of PMAX

  • Fine Detail: Excellent for handling intricate details and textures.
  • Sharpness: Typically produces sharper images.
  • Best for “Busy” Subjects: Excels with textured subjects like insect eyes or feathers.

Limitations of PMAX

  • Artifacts: Can produce artifacts in smooth, out-of-focus areas.
  • Harsh Transitions: May show sharp, unnatural transitions in some parts of the image.
  • Noise Amplification: Prone to amplifying noise, especially in deep stacks.
  • Alignment Tolerance: Poor results when there are slight misalignments between frames
  • Colours: May alter contrast and colours
Queen Ant – PMAX Output Example: Notice the increased background noise, halo artifacts, and difficulty handling the movement in the antennae and mouth parts. However, the head detail is exceptionally sharp and well-defined.

DMAP (Depth Map)

DMAP uses a different approach by creating a depth map of the subject to blend images smoothly. It’s particularly effective for subjects with smooth surfaces and gradual transitions, where PMAX’s sharpness might create unwanted artifacts.

How DMAP Works

  1. DMAP analyzes the focus position in each image.
  2. It creates a depth map representing the focused areas across the stack.
  3. This map is used to determine ideal blend boundaries between images.
  4. Smoothing algorithms are applied to ensure gradual transitions between focus zones.
Queen Ant – Depth Map Visualization: This depth map highlights the areas in focus, illustrating how DMAP blends transitions smoothly. Notice the gradual gradient shifts indicating depth, which helps achieve natural-looking transitions in the final image.

Advantages of DMAP

  • Smooth Transitions: Produces natural, seamless transitions between focused areas.
  • Reduced Artifacts: Minimizes halo effects around high-contrast edges.
  • Realistic Rendering: Ideal for smooth surfaces and subjects with gradual depth transitions.
  • Better for Movement: More effective at handling slight subject movement or misalignment.
  • Colours: Best for rich tone and color, does not alter color/contrast

Limitations of DMAP

  • Fine Detail: May struggle to capture very fine overlapping textures.
  • Softer Results: Generally softer than PMAX, especially for highly textured subjects.
Queen Ant – DMAP Output Example: Observe the smoother background and improved handling of movement in the antennae and mouth parts. While the detail is softer compared to PMAX, the overall transitions are more natural and seamless.

PMAX vs. DMAP: Which One to Use?

Choosing between PMAX and DMAP in Zerene Stacker, depends on your subject and priorities. Here’s a quick guide:

AspectPMAXDMAP
Best ForIntricate detail (Bristly bugs, feathers, plant textures)Smooth surfaces (petals, polished minerals) and gradual depth transitions
SharpnessHigh sharpness and fine detailSmoother, more natural transitions; may be softer
ArtifactsProne to artifacts in smooth, out-of-focus areasReduced halo and artifact issues
Handling of MovementSensitive to alignment errorsHandles slight subject movement effectively
NoiseCan amplify noise, especially in deeper stacksLower noise output, especially in smooth surfaces
Ideal Image CountFewer source images needed to achieve sharp results, well-aligned stacksPerforms better with larger and deep stacks

Use PMAX for:

  • Subjects with intricate detail (overlapping texture, like hair, feathers, etc.)
  • When maximum sharpness is priority
  • Textured surfaces
  • When working with fewer source images
  • Well-aligned image set

Use DMAP for:

  • Smooth surfaces (petals, polished minerals)
  • Subjects with gradual depth transitions
  • When natural-looking transitions are crucial
  • Situations with slight subject movement

Best Practices for Stacking with PMAX and DMAP

To get the best results, consider these practical tips:

  1. Try Both Methods: Often, processing the stack with both PMAX and DMAP allows you to compare results and pick the best one.
  2. Hybrid Approach: For complex subjects, process different parts of the image with each method and combine them during retouching.
  3. Retouching: Both methods may require some retouching, particularly in challenging areas like transitions between in-focus and out-of-focus regions.
  4. Image Alignment: Proper alignment of source images is crucial. In some handheld stacks, it’s possible that all images of the stack do not align well. This can be resolved using sub-stacks of a smaller number of images.
  5. Deep Stacks: For deep stacks, you can manage PMAX noise by dividing the images into smaller sub-stacks, which reduces overall noise.
Queen Ant
Queen Ant – Final Image: Created by combining PMAX, DMAP outputs and input source images to correct movement in the antennae and mouth parts, followed by contrast and color adjustments in Photoshop.

Conclusion

Mastering PMAX and DMAP in Zerene Stacker empowers photographers to make informed choices based on subject matter and desired results. PMAX excels in preserving fine detail and sharpness, while DMAP is ideal for smooth transitions and natural results. By understanding when to use each method—or combining them—you can bring out the best in your macro and microscopy photography.

6 Comments

  • Vinod Kumar VK

    very well explained.. in simple terms.. this is a must understand subject/theory for stacking. DMAP really gives a sharp texture but allignment it misses.. i felt.. as of now.. i stack both and work on DMAP image choosing the PMAX as source..
    This article made me understand more on the subject.
    Thanks for the detailed review.
    Regards

  • Umesh B Thammaiah

    Hi Raghu

    Macro photography is the art of capturing extremely close-up images of small subjects, allowing fine details to be visible to the human eye. Achieving sharp focus and clarity in macro shots can be challenging, it is well explained with the right techniques in article which helps to capture stunning images of tiny worlds.

    Depth of Field (DoF) in macro photography is very shallow due to the extreme closeness of the subject. The writeup easily explains to create stunning, high-quality macro images, capturing the intricate details of nature or showcasing everyday objects in an entirely new way.

    – Umesh B Thammaiah

  • Hari

    Hi Raghu, as an amateur macro photographer who struggles with focus stacking (using a manual lens) this site is a Gold mine to learn the techniques.

    Keep doing the good work. If there was a patreon i would subscribe immediately 😄. Hope to meet you in person someday.

Leave a Reply

Your email address will not be published. Required fields are marked *