Read Raw files and create vtkimagedata

How can i read raw data files from folder and convert it to the vtkimagedata format.
I need to read the raw data files from the folder and do some filters on it and finally need to render it. its dimension 1024 x 1024 and 16 bit unsigned little endian.
So i plan to read the raw files from folder and convert it to vtkimagedata then filter and render. But unable to read and convert it to vtkimagedata properly.
I am in learning stage of the vtk. So plz help.
Thank in advance