Research on multi-exposure fusion (MEF), multi-focus fusion (MFF), and infrared-visible image fusion (IVIF) has largely focused on rendered RGB images, while unified fusion across these tasks in the RAW domain before image signal processing (ISP) remains relatively underexplored. To support research in this setting, we introduce the RAWPrism dataset, covering all three tasks, and the RAWPrism model, a lightweight unified multi-task fusion network. The RAWPrism dataset comprises 422 usable MEF scenes and 150 registered MFF pairs from our RAW captures, together with 1,500 FMB-derived IVIF samples, in which the visible RAW inputs are reconstructed by ReRAW and their RGB counterparts rendered by CycleISP. Scene-level partitions and task-specific rendering and scoring protocols connect these resources to method development and evaluation. To our knowledge, the RAWPrism model is the first to unify MEF, MFF, and IVIF directly in the RAW domain. It combines a CFA-aware representation, task-conditioned source gating, and a shared backbone to support all three tasks with one 3.58M-parameter checkpoint. Together, the dataset and model support the study of shared fusion mechanisms across exposure, focus, and spectral complementarity.
Figures & tables
Figure 1: RAWPrism’s three fusion settings. MEF pairs under/over exposures, MFF pairs near/far focus, and IVIF pairs reconstructed visible RAW with infrared. The examples illustrate complementary bright/dark detail, focus detail, and visible texture/thermal targets supplied to the shared model.
Track
Source and construction
Usable scenes/pairs
Train / Val / Test
Reported resolution
MEF
Our captured native RAW under/over exposure pairs
422
338 / 42 / 42
4032 × 3024
MFF
Our captured and registered native RAW focus pairs
150
120 / 15 / 15
3990 × 2980
IVIF
FMB-derived ReRAW reconstruction and CycleISP RGB rendering, each paired with registered thermal infrared
1,500
1140 / 80 / 280
800 × 600
Table 1: The RAWPrism dataset: resources and scene-level splits. Resolutions reproduce the reported dataset dimensions. MEF retains 422 usable under/over pairs from 424 source records; two records are excluded during pairing and quality screening (Section 3.2 ).
Figure 2: RAWPrism architecture for unified RAW-domain MEF, MFF, and IVIF. (a) Task-specific input adapters provide two six-channel latents; omitted preprocessing includes MEF exposure alignment and IVIF infrared packing and visible-plane gain adjustment. The thumbnails illustrate one MEF scene and an example output from a trained RAWPrism checkpoint; channel tints and a shared display mapping identify the packed CFA planes. Spatial source weights are broadcast across each latent’s six channels before weighted concatenation into the 12-channel shared U-Net input. The selected head refines the six-channel backbone output as ut=u+Pt(u) using a task-specific 1×1 convolution, followed by inverse CFA synthesis and the smooth range constraint σβ . MEF/MFF use the head output directly; final IVIF inference additionally applies clip[0,1](0.9Xvis+0.1Xhead) (omitted), where Xvis is gain-adjusted visible RAW. The fixed display ISP serves RGB visualization/evaluation and differs from the differentiable training proxy. (b) Directional Green Prediction combines horizontal and vertical estimates with learned, gradient-aware weights to obtain G^R,G^B at red/blue sites. Measured Gh,Gv bypass prediction and are assembled with these estimates in the order g=[G^R,Gh,Gv,G^B]⊤ . The fixed normalized Hadamard transform yields one common green component and three inter-plane contrasts; concatenating them with R−G^R and B−G^B forms the six-channel latent. CFA analysis/synthesis is invertible before task-specific latent modifications; IVIF subsequently zeros the infrared color-difference channels. (c) The shared MLP maps the task token to a condition that drives FiLM in the convolutional Reliability Field Gate (RFG) and AdaLN before backbone attention. Source-wise softmax gives relative spatial preferences satisfying w1+w2=1 . In the reported configuration, hand-designed prior inputs are zero; the biased prior branch contributes the learned constant feature offset b0 .
Method
EN ↑
SD ↑
QAB/F↑
MI ↑
SCD ↑
VIF ↑
CC ↑
SSIM ↑
MEF-SSIM ↑
SwinFusion, official order
6.850
0.160
0.735
5.459
0.183
0.886
0.945
0.636
0.988
UniFusion
6.845
0.160
0.721
6.046
0.206
1.001
0.953
0.639
0.980
TC-MoA
6.898
0.138
0.651
3.448
− 0.268
0.733
0.851
0.595
0.922
Mertens
7.106
0.190
0.729
6.349
0.217
1.039
0.937
0.632
0.989
RAWPrism (ours)
6.763
0.161
0.443
7.248
0.380
1.005
0.957
0.590
0.910
Table 2: MEF results on 42 test scenes with a common evaluator, resize policy, and three-level MEF-SSIM. VIF, CC, and SSIM use the maximum-side-1024 grid. Source controls are discussed in Section 5.7 . Bold/underline: highest/second-highest values (ties included).
Method
EN ↑
SD ↑
QAB/F↑
MI ↑
SCD ↑
VIF ↑
SSIM ↑
UniFusion
6.699
0.121
0.593
5.567
0.275
0.643
0.910
SwinFusion
6.722
0.123
0.521
5.656
0.472
0.638
0.921
TC-MoA
6.753
0.128
0.547
5.609
0.519
0.684
0.896
CDDFuse
6.669
0.194
0.394
3.221
0.907
0.510
0.611
IFCNN
6.760
0.128
0.558
5.613
0.631
0.633
0.900
Laplacian
6.802
0.129
0.606
5.404
0.681
0.698
0.889
Table 3: Primary MFF results on 15 scenes under the legacy R/B-swapped renderer. Sources are globally resized for FOV mismatch; VIF and SSIM use the maximum-side-1024 grid. Bold/underline: highest/second-highest values (ties included).
Method
EN ↑
SD ↑
QAB/F↑
MI ↑
SCD ↑
VIF ↑
CC ↑
SSIM ↑
UniFusion
7.240
0.202
0.716
4.352
1.596
0.419
0.586
0.718
SwinFusion
7.222
0.207
0.654
4.548
1.672
0.382
0.601
0.727
TC-MoA
7.249
0.200
0.703
3.884
1.563
0.409
0.581
0.735
CDDFuse
7.246
0.213
0.645
4.512
1.717
0.394
0.604
0.732
SeAFusion
7.201
0.201
0.630
4.151
1.679
0.367
0.605
0.718
IFCNN
7.069
0.171
0.648
3.543
1.547
0.327
0.615
0.733
Table 4: IVIF results on 280 Protocol-C scenes, scored against OpenCV-rendered visible RAW and infrared references. RAWPrism’s fused RAW uses the same display pipeline. Bold/underline: highest/second-highest values (ties included).
Figure 3: Qualitative comparisons of MEF, MFF, and IVIF (top to bottom) on scenes 0406, 0115, and 0060. The first two columns show the source pairs. IVIF follows Protocol S: RGB baselines receive original FMB visible RGB, while RAWPrism receives reconstructed RAW; both use the same infrared image. MFF inputs and the RAWPrism output use a shared metadata-based display ISP; Table 3 uses the legacy renderer. † marks cross-task applications: CDDFuse and SeAFusion on MEF/MFF, and Mertens on MFF/IVIF.
Inference-time setting
EN
SD
QAB/F
MI
SCD
VIF
SSIM
Normal inference (reference)
7.374
0.218
0.716
5.187
1.389
0.489
0.704
Identity basis in place of Hadamard
7.415
0.228
0.582
4.545
1.088
0.364
0.623
Fixed equal-weight green interpolation
7.374
0.218
0.716
5.189
1.389
0.489
0.704
Four structure channels zeroed
7.337
0.221
0.724
6.949
0.769
0.519
0.704
Infrared zero
7.356
0.221
0.724
6.537
0.898
0.514
0.702
Infrared mean
7.342
0.221
0.724
6.645
0.789
0.512
0.701
Table 5: Inference-time ablations on 280 Protocol-C IVIF scenes with fixed model weights. All rows share the diagnostic replay reference. Representation settings change the indicated operation; infrared settings probe the complete input-processing and fusion path. Full infrared metrics and execution scope are given in Appendix E.2 . Bold/underline: highest/second-highest values (ties included).
Source renderings under the legacy R/B-swapped pipeline
Legacy rendered sources; global source resizing when dimensions differ
MFF, corrected-source sensitivity
Captured RAW focus pair
Corrected source renderings
Corrected channel order and scene white balance. Table E4 reports results. Run linkage and baseline input identities are only partially recorded (Appendix E.4 ).
IVIF, ReRAW–CycleISP inputs
ReRAW-reconstructed visible RAW and corresponding thermal infrared input
CycleISP-rendered rgbisp.jpg and the same thermal input, for training and testing
Shared scene partitions; OpenCV display ISP for fused RAW; scoring references specified by the evaluation condition
Appendix
Table C1 : Input and evaluation conditions. IVIF result provenance is discussed with Table 4 .
Task
Packed side
Sensor side
Median latency
p95 latency
MEF
128
256
13.9
14.8
MFF
256
512
37.5
38.7
IVIF
128
256
11.6
13.9
Appendix
Table E1 : Latency in milliseconds for square crops, with side lengths in pixels.
Input or output control
EN
SD
QAB/F
MI
SCD
VIF
CC
SSIM
PSNRsrc
Normal infrared input
7.374
0.218
0.716
5.187
1.389
0.489
0.504
0.704
19.520
Infrared zero
7.356
0.221
0.724
6.537
0.898
0.514
0.476
0.702
23.033
Infrared mean
7.342
0.221
0.724
6.645
0.789
0.512
0.474
0.701
23.083
Infrared spatial shuffle
7.376
0.216
0.569
4.188
0.773
0.332
0.470
0.597
19.320
Infrared R/B sub-lattices zeroed
7.374
0.218
0.716
5.187
1.389
0.489
0.504
0.704
19.520
Infrared G sub-lattices only
7.374
0.218
0.716
5.187
1.389
0.489
0.504
0.704
19.520
Appendix
Table E2 : Infrared-input controls from the fixed-weight replay on 280 Protocol-C scenes (Appendix E.2 ). All rows use the Protocol-C display renderer. Model-based rows share a common reference. Input copies pass through the replay pipeline. Table E3b gives exact copies of the scoring references. PSNRsrc is source-averaged PSNR in dB. Bold/underline: highest/second-highest values (ties included).
Task
Output
MI
SCD
MEF
Under-exposed source
8.207
− 0.751
MEF
Over-exposed source
9.698
0.972
MEF
Under/over rendered average
8.113
0.221
MEF
Packed-RAW linear average
8.125
0.264
MEF
RAWPrism final
7.248
0.380
MFF
Far-focus source
8.599
0.309
Appendix
Table E3a : MEF and MFF source-copy and averaging controls. MFF retains the legacy rendering condition. Bold/underline: highest/second-highest values (ties included). Rankings are computed separately for each task.
Output
EN
SD
QAB/F
MI
SCD
VIF
CC
SSIM
PSNRsrc
Copy visible
7.184
0.206
0.752
8.204
0.723
0.524
0.477
0.722
+∞
Copy infrared
6.874
0.174
0.285
7.897
0.677
0.512
0.477
0.722
+∞
RAWPrism final C
7.392
0.222
0.711
5.284
1.357
0.495
0.501
0.699
19.081
Appendix
Table E3b : Exact-source IVIF copies under the archived Protocol-C condition, 280 scenes. PSNRsrc is source-averaged PSNR in dB. Bold/underline: highest/second-highest values (ties included).