QTR-Stepwedge Tool Instructions Corrections

I watched your last video again, and then tested it against scans I have that includes the Q-13 target. I am not sure if it was a case of simply mis-speaking or a misunderstanding of what the Stepwedge Tool calibration step is doing to the scanned target, but it is causing problems for people trying to follow your instructions.

When you run the calibration step against the known target in the Q-13 values, it is corrected the white point, gamma, and black point to the known values in the target based on what you type in for the values for the white, mid, and black steps. If you run the calibration step against the target you are trying to correct, it is calibrating to unknown variables. The QTR-SWT calibration step is adjusting the scan what you entered as 97, 54, 11 for the 0%, 50%, 100% values. That means the recorded value for the 50% patch will always be L*54, even if the actual value is L*40, and the Dmax will always be L*11 even if it is actually L*24. It throws all of the values off and results inaccurate linearizations or constant iterations that never converge.

Take a look at the screenshots, and you’ll see what I mean.

This is what the original scan looks like, and measurements from it (with no correction to the scan).

Original Scan PtPd-HPR-65-12-8-min-SWT.png

Measurments from raw scan.png

I didn’t make a screenshot of the followoing, but to use the stepwedge tool without adjusting the image, you first need to add a 21-step grayscale target you are trying to measure, and then select the row and run step 1 of the stepwege tool with the calibration step values set to 0: 100, 10: 54, 20:0. I think that is what you trying to do, but applied it to the wrong image. Doing it this way will preserve the original contrast in the scanned target, of which you then make a marquee selection and go on to step 2 of the QTR stepwedge tool script to get the sampled data and save the file.

This is what the actual measurements should look like when corrected to the known values in the Q-13 target.

QTR Stepwedge Tool scan adjusted with correct method.png

Measurements from correct method.png

This next one is with the method you demonstrated in the two videos where you used the stepwedge tool script. Scan adjusted with incorrect method.png

Measurements from incorrect instructions.png

One other thing to keep in mind is that the calibration step is specific to the image. Doing the first calibration step from the scanned target you’re trying to measure, then opening the standard 21-step target, and running the calibration step on that, and then going back to the scanned target to get the measurements isn’t acutally doing anything. You can see in the folder with screenshots that the one with the calibration on the stadard 21-step grayscale target like you show in your video is exactly the same as the one where I didn’t do it.

Here is a shared link to a folder with the scans, measurements, and screenshots. It is a little too big to email, but should make it easy to see what I mean. I would really suggest you take down the video until you can test the method against more accurate measurement devices and against the Q-13 target.


Hey Alan, regarding Q1: all the stepwedge tool files can be opened in the current version of any of my apps (for positives or negatives). There was a bug from a couple of versions ago when opening SWT txt files that had hidden line returns, but that has been fixed within the last few months.

About Q2: Basically, yes, after calibrating, the SWT script will record the Lab values from each patch. It knows how big the selection is and how many patches there are so it makes a selection slightly smaller to give a margin or error, does an average filter, and samples the data from each patch to a text file. However, the 2nd calibration step done on the 21-step grayscale target in the QTR-Stepwedge Tool folder isn’t actually doing anything because the calibration step is unique to each image in which the script is being run. You can bypass the calibration step entirely by simply duplicating the background layer and renaming the copy to “QTR Stepwedge Sample Data”, then make the selection on the scanned target and run the SWT script.

I didn’t want to contradict it without running my own tests, and I just emailed Bill with more details, but I found a fundamental flaw with the SWT method described in the video. Doing the 1st calibration step on the scanned image will always give you faulty and unreliable readings. It is essentially forcing the scanned (unknown) values in the 0%, 50%, and 100% patches to L*97, 54, and 11. It means those steps will always be clamped to those values in the final measurements regardless of what they actually are, and will throw off the readings for every other step as well.

If you’re going to use the step wedge tool script I suggest 1 of 3 options. 0: don’t convert to grayscale because you could introduce color shifts in the conversion between different color spaces1: Get the Q-13 target and include it with every scan, 2: Scan without adjustments with carefully color-managed input profile made with the IT8 reflective target so that you can trust color in the scan3: bypass the calibration step and keep a consistent error from the scanner rather than introducing the variablitity