Great write-up! I had a question regarding the contrast stretching operation you mentioned—are there any specific heuristics or automated techniques you'd recommend for selecting the r1, r2, s1, and s2 values in practice, especially when working with varying lighting conditions across a dataset?