Curve Matching for Spine X-ray Image Retrieval Using Dynamic Programming