Back to search

Nanyang Technological University

From file fragments to images: visual image restoration and super-resolution using deep learning

Abstract

dc:description.abstract

Image restoration and super-resolution are important image processing tasks prior to many downstream computer vision applications. Existing image restoration methods typically focus on restoring degraded images under pixel-level assumptions, without accounting for issues such as bitstream corruption or file fragmentation. Hence, this thesis aims to address these issues starting from file fragment classification to bitstream-corrupted JPEG image restoration. Next, this thesis explores the task of image super-resolution from degraded low-resolution inputs. Existing image super-resolution methods mainly rely on window-based self-attention, which suffers from a limited receptive field and rigid patch partitioning. This thesis proposes a prompt-based framework to enhance global context and further introduces an adaptive superpixel token aggregation module to improve representation flexibility and reconstruction quality. First, we investigate file fragment classification from a visual perspective to identify file types in raw bitstreams. Existing methods often model fragments as 1D byte sequences and focus on interbyte relationships, neglecting informative intrabyte cues. We propose Byte2Image, a novel representation that converts byte sequences into 2D grayscale images to capture intrabyte information. Based on this, we design ByteNet, a dual-branch network that jointly processes the original 1D sequence and the 2D image. Powered by a vision transformer, ByteNet effectively models both interbyte and intrabyte dependencies, achieving state-of-the-art results across multiple benchmarks. Second, we address image restoration from corrupted JPEG bitstreams. Unlike existing works that operate on pre-defined degradation models in the pixel domain, our approach addresses bitstream-level corruption, where unpredictable color casts and block shifts emerge in decoded images. We propose a two-stage compensation and alignment framework. The first stage performs block-wise color compensation and alignment based on estimated shifts, using image similarity. The second stage refines results using the low-resolution thumbnail in the JPEG header to guide pixel-level reconstruction in a coarse-to-fine manner. Experimental results validate the robustness of the proposed method across different levels of corruption. Third, we focus on image super-resolution to reconstruct high-quality images from degraded low-resolution inputs. While transformer-based models show good promise, their reliance on window-based self-attention results in a limited receptive field. To overcome this limitation, we propose PromptSR, a prompt-based lightweight super-resolution framework that employs a cascade prompting block to enhance global context modelling and enable progressive local refinement. The global layer extracts anchor prompts via cross-scale attention on downsampled features for long-range modelling. The local layers refine features using both category- and window-based attention, guided by global prompts. PromptSR achieves superior performance compared to prior lightweight models. Fourth, we further propose AsTaSR, an adaptive framework designed to overcome the limitations of rigid patch partitioning by employing adaptive superpixel token aggregation. AsTaSR introduces two complementary types of superpixels: regional superpixels, constructed by clustering pixels based on graph connectivity, and distributed superpixels, obtained by associating pixels with learnable superpixel tokens. To enhance local detail reconstruction, we also design an adaptive local refinement module that integrates intra-patch and intra-superpixel self-attention. Extensive experiments across various benchmarks demonstrate that the proposed AsTaSR consistently outperforms existing state-of-the-art methods in terms of both reconstruction accuracy and generalization ability.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Liu, Wenyang
Advisor dc:contributor.supervisor
  • Yap Kim Hui

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
Language dc:language.iso
en

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Liu, Wenyang. From file fragments to images: visual image restoration and super-resolution using deep learning. Nanyang Technological University, 2026. https://doi.org/10.32657/10356/210558