A thermographic method for non-destructive testing: numerical and experimental analysis