If no selected region found, use whole file as input