Sheds are not accurate
Sheds are always longer than the snake. I originally made this program so that I could see what kind of ratio to use for measuring sheds. What I found was that it's a different ratio every time. By that point, I decided there's no point in trying to measure the sheds when I already have a much more accurate method at my disposal.
This is Pinky (mother of the Anery I just posted, BTW) and her shed that is 6 days old measures 54.5 inches. Here is her measurement in my program, which says she is about 47.6 inches.
IMO that's a huge difference, and I never ever trust the numbers when people say, "I have a hatchling that is X inches long." When they say it's 18 inches, that means it's probably somewhere between 12 and 24... I've seen how inaccurate every other method of measurement can be.
I've had people email me who measured tons of vacuum hoses and extension cords and all kinds of other stuff to see if it really is accurate. They had only good things to say, and it doesn't surprise me.
Honestly, the math behind it (the Pythagorean theorem) is quite simple. To paraphrase: the length of the hypotenuse of a right triangle is the square root of the sum of the first side squared and the second side squared. Or, "A squared + B squared = C squared."
All it does is determine the length of all the segments using that, and sum them together. This is the "snake length" in pixels. The "length unit" is determined in the same way, in pixels. Then the snake's length is divided by the length unit's length, (pinky is about 3.97 times as long as the ruler) and then multiplied by the number (12) you typed into "Unit length" to arrive at the answer.