Computer-aided diagnosis of pancreatic and lung cancer