Municipal sewage sludge contains a high water content and strong hydrophilicity, making mechanical dewatering a critical step in sludge treatment and disposal. To clarify the collapse of filtration channels within the sludge cake under high pressure and to develop more precise targeted conditioning methods, this study focused on the direct correlation between pore structure evolution and sludge dewatering performance. A self-designed online system was used to compare the dewatering processes of raw sludge, thermal hydrolyzed (TH) sludge, and carbonaceous skeleton-assisted thermal hydrolyzed (CSkel-TH) sludge. In-depth analysis was conducted on the structure scanning data of the filter cake at different time intervals and the corresponding filtrate mass data. The results showed that during the press filtration process, the raw sludge gradually transformed into a filter cake, with larger pores trapping the water. In the upper and bottom layers, regions with a porosity higher than 10 % appeared, forming a “water-locking layer” even with continued pressure, it became impossible to remove additional water. After separate hydrolysis, the porosity and pore connectivity of the sludge decreased, and the thickness of the “water-locking layer” increased as press filtration progressed, inhibiting water discharge and making cake formation difficult. Following CSkel-TH treatment, the number of pores with diameters ranging from tens to over a hundred micrometers increased, and the connectivity between pores was enhanced. In this case, the channels formed by interconnected small pores continuously transported the water trapped in the large pores outward, facilitating water discharge. This work provided a basis for further targeted regulation of pore structures to enhance the effectiveness of high-pressure dewatering of sludge.