Convert MEF to HDR
Max file size 100mb.
MEF vs HDR Format Comparison
| Aspect | MEF (Source Format) | HDR (Target Format) |
|---|---|---|
| Format Overview |
MEF
Mamiya RAW Image
Mamiya's proprietary RAW image format used by their medium format digital cameras and digital backs. MEF files store unprocessed sensor data from Mamiya's large CCD and CMOS sensors, capturing exceptional resolution and color depth for professional studio and commercial photography. Lossless RAW |
HDR
Radiance RGBE High Dynamic Range
The Radiance RGBE format, created in 1985 by Greg Ward for the Radiance lighting simulation system. HDR stores pixel data as 32-bit floating point values per channel, enabling representation of luminance ranges far beyond standard displays — from deep shadows to brilliant highlights in a single image file. Lossless Standard |
| Technical Specifications |
Color Depth: 12/14-bit RAW sensor data
Compression: Lossless RAW compression Transparency: Not supported Animation: Not supported Extensions: .mef |
Color Depth: 32-bit float per channel (RGBE encoding)
Compression: Run-length encoding (RLE) Transparency: Not supported Animation: Not supported Extensions: .hdr, .pic |
| Image Features |
|
|
| Processing & Tools |
Reading MEF files with rawpy for RAW processing: # Read Mamiya RAW with rawpy
import rawpy
from PIL import Image
raw = rawpy.imread("photo.mef")
rgb = raw.postprocess(
output_bps=16,
use_camera_wb=True
)
img = Image.fromarray(rgb)
|
Creating HDR files with imageio: # Write Radiance HDR
import imageio
import numpy as np
# Convert to float32 for HDR
hdr_data = rgb.astype(np.float32) / 65535.0
imageio.imwrite("output.hdr", hdr_data)
|
| Advantages |
|
|
| Disadvantages |
|
|
| Common Uses |
|
|
| Best For |
|
|
| Version History |
Introduced: 2004 (Mamiya)
Current Version: MEF (Mamiya/Leaf series) Status: Legacy (Mamiya merged into Phase One) Evolution: Mamiya ZD (2004) → DM series (2009) → 645DF+ (2012) → Phase One acquisition (2015) |
Introduced: 1985 (Greg Ward, Lawrence Berkeley Lab)
Current Version: Radiance RGBE (1991 standardized) Status: Mature, industry standard for HDR Evolution: Radiance (1985) → RGBE spec (1991) → OpenEXR alternative (2003) → still widely used |
| Software Support |
Image Editors: Capture One, Adobe Lightroom, RawTherapee, Phocus
Web Browsers: No browser support OS Preview: Windows/macOS via Capture One, Adobe Mobile: No native support CLI Tools: rawpy, dcraw, LibRaw, exiftool |
Image Editors: Photoshop, GIMP, Luminance HDR, Photomatix
Web Browsers: No native browser support OS Preview: Windows (HDR viewer), macOS (Preview limited) Mobile: Specialized HDR apps only CLI Tools: ImageMagick, Radiance, imageio, OpenCV |
Why Convert MEF to HDR?
Converting MEF to HDR unlocks the full dynamic range potential of Mamiya medium format RAW data by storing it in Radiance's 32-bit floating point format. Mamiya sensors capture 12-14 stops of dynamic range in their RAW files, but this data is typically compressed to 8-bit or 16-bit integer formats during standard conversion. The HDR format preserves the complete luminance range as scene-referred floating point values, enabling advanced tone mapping and lighting workflows that standard formats cannot support.
For 3D artists and VFX professionals, converting Mamiya medium format photos to HDR creates exceptional environment maps for image-based lighting (IBL). The large sensor area and high resolution of Mamiya cameras produce panoramic source material with minimal noise, and the HDR format stores the real-world luminance ratios needed for physically accurate light simulation in rendering engines like Arnold, V-Ray, and Blender Cycles.
Architectural photographers benefit from MEF to HDR conversion when documenting spaces with extreme lighting contrasts — bright windows against dark interiors, for example. The Mamiya sensor captures the full range, and the HDR format preserves both the sunlit exterior detail and shadow information simultaneously. Tone mapping software can then create balanced final images or lighting analysis data from this single HDR file.
The conversion process demosaics the Mamiya RAW data, applies white balance correction, and maps the pixel values to 32-bit floating point in the Radiance RGBE encoding. While the resulting HDR file is larger than a standard JPEG export, it retains the full physical luminance information that makes Mamiya medium format captures so valuable for demanding professional applications.
Key Benefits of Converting MEF to HDR:
- Full Dynamic Range: Preserve all 12-14 stops captured by the Mamiya sensor
- 32-bit Precision: Floating point storage eliminates banding and clipping
- IBL Ready: Create environment maps for 3D rendering from medium format photos
- Tone Mapping Flexibility: Apply different tone mapping operators for various output needs
- Physical Accuracy: Scene-referred data maintains real-world luminance ratios
- VFX Integration: Standard format for compositing and lighting pipelines
- Archival Value: Preserve maximum data from irreplaceable medium format captures
Practical Examples
Example 1: Creating IBL Environment Maps from Mamiya Panoramas
Scenario: A VFX studio uses Mamiya medium format photos of real locations to create HDR environment maps for CGI lighting in a feature film.
Source: location_pano_001.mef (65 MB, 50 MP, 14-bit RAW) Conversion: MEF → HDR (32-bit float RGBE) Result: location_pano_001.hdr (38 MB, 32-bit float per channel) Workflow: 1. Capture multiple exposures with Mamiya 645DF+ 2. Convert each MEF to HDR preserving full dynamic range 3. Merge into panoramic HDR environment map 4. Load into Arnold/V-Ray for IBL lighting ✓ Physically accurate lighting from real locations ✓ Medium format resolution provides sharp reflections ✓ Full luminance range for realistic CG integration
Example 2: Architectural Interior Documentation
Scenario: An architectural photographer converts Mamiya RAW captures of a building interior with extreme lighting contrast to HDR for advanced tone mapping.
Source: lobby_interior.mef (55 MB, 40 MP, 14-bit RAW) Conversion: MEF → HDR (32-bit float) Result: lobby_interior.hdr (32 MB, full dynamic range) Benefits: ✓ Bright windows and dark corners preserved in single file ✓ Tone map to reveal interior details without blown highlights ✓ Lighting analysis data for architectural planning ✓ Multiple tone-mapped versions from one HDR master ✓ Medium format detail visible in large prints
Example 3: Fine Art HDR Landscape Processing
Scenario: A landscape photographer converts Mamiya medium format RAW captures to HDR for creative tone mapping and gallery print production.
Source: sunset_valley.mef (70 MB, 50 MP, 14-bit RAW) Conversion: MEF → HDR (32-bit float RGBE) Result: sunset_valley.hdr (42 MB, scene-referred luminance) Creative workflow: ✓ Preserve sunset highlights and shadow valley detail ✓ Apply artistic tone mapping in Luminance HDR ✓ Generate multiple interpretations from one HDR master ✓ Export 16-bit TIFF for gallery-quality large format prints ✓ Mamiya medium format resolves fine landscape textures
Frequently Asked Questions (FAQ)
Q: What is the HDR (Radiance RGBE) format?
A: HDR is the Radiance RGBE format created by Greg Ward in 1985. It stores image data as 32-bit floating point values per channel using an efficient RGBE encoding (red, green, blue, shared exponent), enabling it to represent luminance ranges from deep shadows to extremely bright highlights — far beyond what 8-bit or 16-bit formats can capture.
Q: Why convert Mamiya RAW to HDR instead of JPEG or PNG?
A: Standard 8-bit formats like JPEG and PNG clip highlights and shadows, discarding the extended dynamic range that Mamiya's medium format sensors capture. HDR preserves the complete luminance range as floating point data, which is essential for 3D lighting, VFX compositing, tone mapping, and any workflow requiring physically accurate light values.
Q: Can I view HDR files on a standard monitor?
A: HDR files require tone mapping software to display on standard monitors, as they contain luminance values beyond the monitor's range. Software like Photoshop, Luminance HDR, or Photomatix applies tone mapping to compress the dynamic range for viewing. HDR-capable monitors can display a wider range natively.
Q: Which Mamiya cameras produce MEF files?
A: Mamiya ZD, DM22, DM28, DM33, DM40, DM56, Leaf Aptus digital backs, and the Mamiya 645DF+ system. After Mamiya merged with Phase One in 2015, newer cameras use Phase One's IIQ format instead.
Q: Is the conversion from MEF to HDR lossless?
A: The RAW demosaicing step is inherent to any RAW conversion and involves interpolation. However, the HDR output format stores the processed data at 32-bit float precision, which exceeds the original 12/14-bit sensor depth. No additional quality loss occurs from the HDR encoding itself.
Q: How large are the resulting HDR files?
A: HDR file sizes depend on resolution and scene complexity. A 40-50 megapixel Mamiya image typically produces an HDR file of 25-45 MB. The RGBE run-length encoding provides moderate compression while preserving full floating point precision.
Q: Can I use MEF-to-HDR conversions for 3D rendering?
A: Yes, HDR files from medium format cameras make excellent environment maps for image-based lighting in 3D applications. The high resolution and wide dynamic range of Mamiya sensors produce physically accurate lighting data that rendering engines like Arnold, V-Ray, and Cycles use for realistic illumination.
Q: What is the difference between HDR and OpenEXR?
A: Both store high dynamic range data, but HDR (Radiance RGBE) uses a shared-exponent encoding that is simpler and more compact, while OpenEXR (developed by ILM) supports multiple compression schemes, arbitrary channels, and tiled storage. HDR is the standard for environment maps and lighting; OpenEXR is preferred for multi-layer VFX compositing.