You'll need the following tools:
Avisynth
DGIndex
VirtualDub
TMPGEnc Encoder
Colourlike Plugin for Avisynth
The histograms are generated with Avisynth but since we already have the ESB histrograms we just need to write the code to match the SE colors to the original.
First you need to rip your DVD to an M2V file.
Open your M2V movie file in DGIndex and save the project as D2V file. Make sure to check "Forced Film" under Video>Field Operation.
This is where Avisynth comes in. Open Notepad and write the following code:
LoadPlugin("C:\AviSynth 2.5\DGIndex\DGDecode.dll")
mpeg2source("C:\EMPIRE_STRIKES_BACK\VIDEO_TS\esb_dvd.D2V")
polarcolourlike("C:\EMPIRE_STRIKES_BACK\VIDEO_TS\SeDVDallPolar.txt", "C:\EMPIRE_STRIKES_BACK\VIDEO_TS\OrigDVDallPolar.txt",true,true,true)
colourlike("C:\EMPIRE_STRIKES_BACK\VIDEO_TS\SeDVDallYV12.txt", "C:\EMPIRE_STRIKES_BACK\VIDEO_TS\OrigDVDallYV12.txt")
converttorgb32(matrix="pc.709")
colourlike("C:\EMPIRE_STRIKES_BACK\VIDEO_TS\SeDVDallRGB.txt", "C:\EMPIRE_STRIKES_BACK\VIDEO_TS\FullLaserallRGB.txt")
levels(36,1,230,0,255)
Naturally change the directory paths to your own. Keep your M2V, D2V and histogram TXT files in the same folder. Save this file as an AVS, under Save as type, select "All files". Save.
You can open your AVS file in VirtualDub to see the results and adjust the levels to your satisfaction. The black and white levels do have to be adjusted otherwise you get a washed out picture. Make sure you save your code each time you make an adjustment then refresh VirtualDub to see the new result.
If everything is to your liking you can now open your AVS file in TMPGEnc and encode to DVD. If all goes well you should now have a nice color corrected file of ESB.