1. An image processing device comprising: a determination section which determines texture direction in a vicinity region based on the vicinity region which includes a target pixel in the image; and a detection section which detects whether or not the target pixel is a defective pixel based on a plurality of pixels including the target pixel which are lined up in the texture direction in the image.