Hi, Thanks for the reply....I actually stretched the image in R using this code which was given to me by my friend and now I see that my DN values have changed as I checked them on ERDAS. As digital number should be an Integer but all the values I got after running this code were fractions.
I am posting the code which I used below.
StartPath <- getwd()
#Defining the root directory
Root <- "E:/Programming/Emani"
Path_in <- paste(Root, "/Input",sep="")
Path_out <- paste(Root, "/Output",sep="")