- Suppose you have input image, say input_image
- Do the some gray lebel operation, say the result is output_image;
Here when apply the transfer function, pixel values will be changed, right,
Say Pixel Values in input image After transfer function Pixel Values in output image
0 2
1 5
...
255 255
Now plot the cloumn1 vs cloumn 2 in above example. The plot in nothing about the image, its how you replace the invividual pixel value using some maths equation right (Transfer Function)
Let see the an example, transfer function is log(r), r represent the pixel values in input image
input_pixels=0:255;
output_pixels=log(input_pixels)
plot(input_pixels,output_pixels);
xlabel('Input Intensity Levels');
ylabel('Output Intensity Levels');
xlim([0,255])
In the plot, you have shown of contrast stretching having three relations between input vs output
First Segment-
Second Segment-
Third Segment-
Hope it helps!, Any questions are welcome