# Linearization Linearization is the process of using measurements from a print and corresponding quad curve to match some desired output. It essentially defines what the output should be—either a straight line from the paper white to the Dmax or some custom set of values you choose—and creates a look-up table to determine what set of ink values will produce that final output in the print. ### QuadToneProfiler Linearization Interface The linearization window is divided into two main sections. The left side has a table for the measurements in a list from light to dark. You will see 21-step placeholder values when the screen first launches, and the list will update with the values from the opened measurement file. The chart on the left side of the screen will display graphs for the measured, smoothed, and output values. The buttons below the chart open additional panels to preview the original and corrected color patches, preview the original and corrected output with an actual image, and adjust a custom output curve. The right side of the screen has a graph of the output quad ink levels, a field to add notes to the final quad file, and different export options in addition to the standard .quad file used with QTR. ![[Grayscale Linearization with Smoothing Settings.png]] ### Basic Linearization Workflow - Print and measure a step wedge image with the initial quad curve - Open the measurement file and corresponding .quad used for printing it - Apply any smoothing or error correction to the original measurement data - Apply any custom output curve if needed - Save and install the new corrected quad curve - Make a new test print to check results ### Printing the linearization target The initial quad curve created in the custom curve creation screen had an initial correction applied when you created it, but you need to create a final linearized curve based on measurements from a printed step target. #### Target Sizes The grayscale linearization can accommodate target sizes from 11 to 256 patches from a wide range of measurement devices and file formats. I generally recommend a 128-step target if using an i1 pro device in strip mode, but linearization will work fine with a 21-step target if using a flatbed scanner or manual measurement device to read the target. - Open PrintTool and open the image. - Make sure there is no color management, and then select Run Print. - Open the QuadToneRIP print dialog options (remember to press the Layout button to open the menu to access the QuadToneRIP settings). - Set the mode to 16-bit to enable the Curves 1, 2, and 3 menus - Select the menu for Curve 1 and choose the newly created base gray curve. - Set the printer settings to highest resolution (2880x2880) Unidirectional and Installed Black. - Leave the advanced options unchecked. - Then run the print. - **note** there is a bug in QuadToneRIP v2.8.0 that will duplicate the print job and have a filter failed error. The print will print fine; just delete the duplicated job in the printer queue. ### Measuring the target There are too many measurement devices and software to detail in these instructions, but the general rule is to measure from light to dark and save the LAB values as a plain .txt file. Please see the [[0. Measurement Device Workflows|measurement device workflows section]] for detailed instructions and videos for the most popular devices. ### Loading the Measurement Data Press the button to load the measurement data from the target you printed a measured. The software will automatically detect the data format, and if there are multiple samples per patch, average them into a single set of values and show a graph of the measured values in the measurements chart and list on the left side of the Linearization screen. #### Measurement Data Graph There are four sets of data graphed when loading the measurement data. - The black dots are the original measurement data. - These dots will not change when adjusting the smoothing sliders. However, they will change if you edit the values in the table on the left or if you manually select and move the point with the cursor\*. - Selecting and deleting one of the measurement points will create a new point that is the average of the two adjacent values. - The red line represents the 256-smoothed values and will change when adjusting the two smoothing sliders or when updating any of the values in the original measurement data list. These are the values used in the linearization calculations - The straight black line is the linear L\*a\*b\* values from Dmin (top left of the graph) to Dmax (bottom right). The black line is a reference for the linear output, but those values **are not used** in the actual correction calculations. - The Green line shows the target L\*a\*b\* L\* values and **are the actual values used** in the linearization calculations. You can adjust the output values to be something other than perfectly linear output with the Output Curve Type dropdown menu items\*. ### Smoothing the Measurement Data Proper smoothing of the measurement data is one of the more critical adjustments you will need to make. Thankfully, it is all visual and you don’t need to do any calculations on your part. There are two sliders that control the number of points used in the smoothing algorithm. The main smoothing value adjusts for any large bumps in the measurement data but can distort it at the extreme highlight and shadow ends of the tonal scale. Use the second smoothing slider to adjust the values from the main smoothing slider back to the general trend in the original measurement data while also smoothing out any remaining bumps in the curve. The goal is to use enough smoothing to remove any bumps or flat spots that will result in banding in the final print and remain true to the general trend of the original data. #### Main Smoothing Window Size: The number of points to use will depend on the size of the measurement target. 21-step targets will require less smoothing than 128 or 256 step targets. A larger value will result in a larger moving-average window and a smoother curve. Very high values will distort the shadow values because the window will include and average values from the 3/4 tones. A good starting point is a setting of 11-35. (Note: the window size will always be rounded up to an odd number to ensure that there is an equal number of input points around the point being smoothed. #### Fine Smoothing Percentage: A value of 0 will turn off the smoothing, and start to apply the smoothing as soon as you begin to adjust it to the right. A higher value will result in a smoother curve but will distort the highlight and shadow values if it is set too high. For those interested, here is what is happening in the smoothing steps: The main smoothing slider is a simple moving average. It creates a window of the specified number of points, averages them into a new value, then moves down one step and repeats until it creates a new set of 256 smoothed values. Those values are input into the second smoothing calculation, where the fine smoothing slider value determines the percentage of points to use in a smooth-step interpolation to recreate the final 256 smoothed values. Those final values are graphed as the red line and used in the actual linearization calculations. --- ![[Grayscale Linearization Screen with Standard Manual Curve Settings.png]] ### Manual Curve Control The manual curve control allows you to adjust the output densities to something other than a perfectly linear L\*a\*b\* L\*. The purpose of this control is to adjust for how matte papers with a relatively low Dmax will appear too light or have shadow values that appear much lighter than the image on the display. It adjusts the output values in the .quad curves so that the final print appears more perceptually correct and removes the need to use a 2nd adjustment curve to the digital image prior to printing. I would not recommend starting to adjust these until you see what a linear L\*a\*b\* L\* print looks like. #### Standard Manual Curve Setting You can also choose the standard compression button to apply a curve that is similar to the kind of compression you get with an ICC profile. The software will automatically determine which curve to apply based on the dMax. If the dMax is lighter than a Lab L value of 10, it will apply a shadow correction curve. If the dMax is darker than a Lab L value of 10, it will apply a slight curve to lighten the quarter and mid tones and keep linear shadows. ### Saving the linearized .quad curves When you are happy with the smoothing and manual output curve (if used) and have added any notes, you will need to save the linearized .quad file to the Quadxxxx folder for your printer. #### Naming the Linearized Curve I always suggest using the same name as the non-linearized curve and adding -LIN before the .quad extension. If I use the manual output curve controls, I add -LIN-MC or -LIN-CS (for “manual curve” or “compressed shadows”). You will also need to rerun the install command for the printer (found in Applications/QuadToneRIP/Profiles/YourPrinter) so that it is available in the QTR print dialog options. ### Confirming Linearization To ensure the new linearized curve is printing correctly and make the .qtp file, you need to make a test print of your standard test image and include a bullseye gradient that will show any obvious reversals or problems with the linearization. Include a simple 21-step grayscale target with your test print to measure and confirm linearity. The other important factor to check is the smoothness of the mid-tones. The grayscale torture test image in the resources folder includes two bullseye gradients as well as linear gradients broken up into 11, 21, 51, 101, and 256 steps. Use this image along with your standard test image to make sure there is no posterization or banding in the final linearized curves. Open the PrintTool and arrange your test image, the torture test, and a 21-step target so that they print together and that there is enough space around the 21-step target for easily reading the patch values. Also, be sure to check that color management is still turned off in the main Print Tool window. Open the QTR print dialog windows by choosing the Print and Paper Settings, going straight to the Print button, and choosing the new linearized gray curve in the Curve 1 drop-down menu. ### Next Steps for the QuadToneProfiler-Pro Quick Start: Measure the final linearized components and then [[Creating the .QTP File|Make the Final QTP Profile]]