skip to content
Home
More Works

Research project · 2025

Scale-aware Co-visible Region Detection for Image Matching

  1. State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing (LIESMARS), Wuhan University
  2. The VITA Lab, École Polytechnique Fédérale de Lausanne (EPFL)

* Corresponding author

ISPRS Journal of Photogrammetry and Remote Sensing

Large scale differences weaken appearance consistency and make keypoint localization uncertain. SCoDe[1]—Scale-aware Co-visible Region Detector—introduces an intermediate region-level correspondence before point matching: it detects the content jointly visible in both images, aligns those regions in scale, and then confines fine correspondence estimation to them. Scale Head Attention correlates features across multiple scale subspaces, while learnable queries aggregate evidence from both views. This coarse-to-fine formulation improves matching precision by up to 8.41% and remains effective across different matching backbones.

Direct point matching and hierarchical SCoDe matching
Fig. 1. Direct point matching remains ambiguous under drastic scale variation. SCoDe first detects and rescales co-visible regions, then establishes fine correspondences within aligned support.
SCoDe architecture
Fig. 2.SCoDe architecture. A shared CNN encoder produces paired features; Scale Head Attention exchanges information across scale subspaces; learnable queries decode anchor points, border offsets, and confidence for the co-visible regions.
Scale Head Attention
Fig. 3. Scale Head Cross-Attention alternates the query view and projects features through convolution groups with different receptive-field scales.
Learnable query decoder
Fig. 4. The decoder combines self-correlation among learnable queries with cross-attention to scale-aware paired features.
Co-visible confidence head
Fig. 5. Co-visible confidence combines pseudo-cosine similarity with a learnable binary regression branch, allowing the model to reject image pairs without valid shared content.
01

Hierarchical matching

Region alignment reduces scale and semantic ambiguity before local descriptors establish point correspondences.

02

Scale Head Attention

Multiple scale-specific subspaces model correlations that conventional same-scale attention can miss.

03

Validity-aware prediction

Anchors, border offsets, and confidence jointly describe where co-visible support exists and whether a valid region should be returned.

Training and primary evaluation use MegaDepth[2], with 3,000 test pairs selected from ten scenes and ray-cast co-visible ground truth. Region detection is measured with confidence recall, IoU recall, overlap IoU (OIoU), and mean IoU. Downstream matching uses pose AUC, accuracy, mAA, precision, and matching score across classical, sparse learned, SuperGlue[4], and dense LoFTR[5] pipelines. We compare region guidance against OETR[3]. ScanNet[6] and GL3D[7] provide qualitative cross-domain tests.

81.98%mIoU for co-visible region detection
99%+confidence recall at all reported thresholds
+8.41%maximum downstream matching precision gain
MethodIoU@.5IoU@.75OIoU@.9mIoU
OETR*87.4060.7170.9076.71
OETR (cyclecenter)90.7159.0352.3677.29
SCoDe94.6971.4374.8281.98
Table 1. Co-visible region detection on MegaDepth (%). OETR* is retrained under the same conditions.
VariantmIoUConfIoUOIoU
w/o ScaleHead77.2998.6962.4288.61
w/o DWConv78.4198.7464.0387.19
w/o confidence79.8666.5389.18
SCoDe82.0299.6269.8287.66
Table 2. MegaDepth ablation (%). Recall columns report the mean across their respective thresholds.

SCoDe’s gains grow as scale ratios become more severe: accurate region boundaries remove unrelated content, aligned crops reduce repetitive-pattern ambiguity, and the same prior improves otherwise very different local matching architectures.

PipelinePriorAUC@5AUC@10AUC@20Acc@5Acc@10Acc@15Acc@20mAA@5mAA@10mAA@20PMS
SP+NN2.263.815.913.916.157.649.903.915.036.9011.543.13
SP+NN+OETR10.1616.5423.5518.5226.2430.7733.4918.5222.3827.2631.297.92
SP+NN+SCoDe13.7522.5732.3324.4935.8142.2746.3424.4930.1537.2341.3010.21
DISK+NN3.304.956.705.317.128.299.195.316.227.4816.890.52
DISK+NN+OETR21.0433.3546.1937.3651.8059.4164.1537.3644.5853.1860.8812.11
DISK+NN+SCoDe23.1035.8148.8140.1554.6761.9767.0240.1547.4155.9563.7214.05
D2+NN0.360.611.350.531.051.762.800.530.791.536.122.68
D2+NN+OETR4.176.7310.187.2610.9013.3816.007.269.0811.8923.102.87
D2+NN+SCoDe5.709.5414.5310.5915.3219.3822.7910.5912.9517.0229.863.23
CON+NN20.4332.5646.1036.1951.8660.0864.7736.1944.0353.2361.697.68
CON+NN+OETR23.3237.1051.2941.7557.8165.7870.6241.7549.7858.9967.4511.21
CON+NN+SCoDe25.6339.7253.9044.5860.7768.5672.9444.5852.6761.7168.8012.32
ASL+NN11.4419.2128.7920.6731.4638.6743.7320.6726.0733.6438.6818.40
ASL+NN+OETR21.9535.9450.8840.2557.2066.2271.1740.2548.7358.7160.8934.55
ASL+NN+SCoDe23.8338.2853.4142.8760.3968.9773.5242.8751.6361.4464.5538.17
LoFTR25.3737.8249.6142.8655.4461.4566.1742.8649.1556.4848.2140.76
LoFTR+OETR31.7047.1460.5553.7168.7374.2477.7553.7161.2268.6171.2246.70
LoFTR+SCoDe34.1150.1464.3557.5572.6378.7282.1657.5565.0972.7676.5448.42
R2D2+NN12.8622.4633.2225.3436.8144.5249.1325.3431.0838.9539.6085.15
R2D2+NN+OETR24.9639.9055.2044.5261.8571.1975.4244.5253.1963.2465.0988.39
R2D2+NN+SCoDe27.2042.9658.2548.6066.1874.2677.9948.6057.3966.7668.8488.64
DISK+SG15.6925.9137.2728.8842.0048.7953.4028.8835.4443.2735.456.98
DISK+SG+OETR21.0433.3546.1937.3651.8059.4164.1537.3644.5853.1860.8812.11
DISK+SG+SCoDe23.1035.8148.8140.1554.6761.9767.0240.1547.4155.9563.7214.05
SP+SG25.1139.2354.0344.2360.3369.4474.8644.2352.2862.2179.149.88
SP+SG+OETR29.3245.5661.3751.0269.0277.9982.0751.0260.0270.0386.1719.00
SP+SG+SCoDe31.1848.2763.7755.0672.3879.8583.8755.0663.7272.7987.5521.51
Table 3. Complete MegaDepth evaluation for image pairs with scale ratio greater than 2 (%). Each feature–matcher pipeline is evaluated without a region prior, with OETR, and with SCoDe. SCoDe consistently improves pose estimation, matching precision, and matching score across sparse, graph-based, and dense paradigms.
Qualitative MegaDepth comparisons
Fig. 6. MegaDepth qualitative comparison. SCoDe remains accurate when OETR misses small shared regions, shifts the detected area, or returns overly broad support.
LoFTR resolution-aware gains
Fig. 7. Relative gains for LoFTR at 480² and 640² input resolutions.
SuperPoint SuperGlue resolution-aware gains
Fig. 8. Relative gains for SuperPoint + SuperGlue. SCoDe remains stable when the input resolution changes.
Rotation robustness
Fig. 9. Correct-match ratio under 0°–50° in-plane rotation. Region constraints improve DISK, R2D2, D2-Net, and SuperPoint without explicit orientation modeling.
ScanNet generalizationGL3D generalization
Fig. 10. Generalization to ScanNet indoor scenes (top) and GL3D outdoor/aerial scenes (bottom). Blue boxes are accurate regions; red boxes mark failure cases under extreme scale, viewpoint, or rotation changes.
@article{pan2025scode,
  title={Scale-aware Co-visible Region Detection for Image Matching},
  author={Pan, Xu and Xia, Zimin and Zheng, Xianwei},
  journal={ISPRS Journal of Photogrammetry and Remote Sensing},
  year={2025},
  doi={10.1016/j.isprsjprs.2025.08.015}
}
  1. X. Pan, Z. Xia, and X. Zheng. “Scale-aware Co-visible Region Detection for Image Matching.” ISPRS JPRS, 2025. DOI
  2. Z. Li and N. Snavely. “MegaDepth.” CVPR, 2018. arXiv
  3. H. Chen et al. “A Span-Based Object-Level Region Proposal Network for Scene Matching.” CVPR, 2022. arXiv
  4. P.-E. Sarlin et al. “SuperGlue.” CVPR, 2020. arXiv
  5. J. Sun et al. “LoFTR.” CVPR, 2021. arXiv
  6. A. Dai et al. “ScanNet.” CVPR, 2017. arXiv
  7. T. Shen et al. “Matchable Image Retrieval by Learning from Surface Reconstruction.” ACCV, 2018. arXiv