Identification and replacement of defective pixel based on Matlab for IR sensor