Osteoporosis diagnosis with X-rays