In the proposed work a method for generating HDR images based on exposure blending is described. Using three differently exposed images a single image with recovered details in shadows and highlights is generated. Input images are analyzed to locate over and underexposed regions based on pixels intensity. Local contrast of input images is also considered in order to generate the output image with correct color transactions between differently exposed areas. Then images are merged using blending function. The proposed method requires a single pass thru the image to generate the result, which allows to process one image for less than 100 milliseconds. The proposed method requires no information about camera or shutting conditions, such as shutter speed or aperture size.