How to get and save IR images?

I am a developer using AstraPro camera. As we need to registrate depth camera and RGB camera, we need to acquire IR images. However, we cannot obtain clear IR images and save these images, even though we use an external IR source. So we want to know how to get and save clear IR images (i.e., IR images are input into matlab calibration toolbox). Thanks a lot.