1、介绍 灰度反转是一种线性变换,是将某个范围的灰度值映射到另一个范围内,一般是通过灰度的对调,突出想要查看的灰度区间。 S = L − 1 − r ( r ⊂ [ 0 , L − 1 ] ) S = L -1-r (r \subset [0,L-1]) S=L−1−r(r⊂[0,L−1]) 比如在以下胸片图像中提取白色絮状形状,在黑色背景下看的不太明显,就可以使用灰度反转增强图像的可视化效果。 output_img = input_img.clone(); for(int i = 0; i < input_img.rows; i++) { for(int j = 0; j < input_img.cols; j++) { output_img.at<uchar>(i, j) = 255 - input_img.at<uchar>(i, j) } } 对数变换可以将图像中低灰度值的部分进行提升,显示出低灰度部分的特征,对高灰度值部分进行抑制,减少高灰度值部分的细节,从而实现增项图像俺不细节,优化图像的对比度。 S = c log ( 1 + r ) S=c\log(1+r)...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Logarithm
Contact Logarithm, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack