1. A processor-implemented method for spatially adaptive tone mapping, the method comprising: extracting, by a processor, luminance data associated with pixels from a received image; converting, by the processor, the luminance data to a logarithm domain; decomposing, by the processor, the logarithm domain luminance data into a base layer, a small scale detail layer, and a large scale detail layer; adjusting, by the processor, amplitudes of data in each of the layers, the adjusting to shift and scale the amplitudes of the base layer and to scale the amplitudes of the small scale layer and the large scale layer, to map the amplitude data into a selected range; converting, by the processor, the adjusted layers from the logarithm domain to a linear domain; applying, by the processor, a global tone compression function to the converted linear domain base layer to generate compressed linear domain layers; and generating, by the processor, compressed luminance data based on a multiplicative product of the compressed linear domain layers.