Automated Quantification Of Arbitrary Arm-Segment Structure In Spiral Galaxies