Classifying Thoracic Diseases using Low Dimensional Chest X-Ray images