I'm trying to do histogram matching between 2 images, so I want to do a mapping in order to specify the destination texture histogram.
Is there any way to solve my problem?
Here is the compute shader code.
#pragma kernel HistogramMatchingMain
Texture2D Source;
RWTexture2D Destination;
[numthreads(8,8,1)]
void HistogramMatchingMain (uint3 id : SV_DispatchThreadID)
{
Destination[id.xy] = Mapping[Source[id.xy]];
}
↧