Here’s how I do it for the head.
https://www.youtube.com/watch?v=yqAr4DUqEt4Given the pistons are irregular in shape and likely protrude above the liner at TDC, you’ll need to do a similar procedure to find the volume of that piston projection at TDC.
i.e. lower a piston in the bore a measured distance and use the plexiglass plate over the liner to discover the volume.
(Be sure to install some liner retainers before moving the crank with the head removed.)
Apply the math based on the engine stroke and the distance you lowered the piston into the bore to come up with the volume of piston that projects into (and subtracts from) the combustion chamber volume.
For example, you might measure the combustion chamber to be 34cc’s and find that the piston projects into the combustion chamber by by 3cc’s.
From there, you can figure out the compression ratio or just use one of the many on-line calculators.
These calculators typically also do the fiddly bits like the head gasket volume and the Summit Racing one also does the piston "dome".
Here’s the Summit Racing one:
https://www.summitracing.com/newsandevents/calcsandtools/compression-calculatorMake Archimedes proud.