逻辑运算又称为布尔运算。基本逻辑运算有4种:
1.逻辑补运算NOT(也叫非运算或取反)
1 2 3 |
状态? ? ? 结果 1? ? ? ? ? ?0 0? ? ? ? ? ?1 |
2.逻辑与运算AND
1 2 3 4 5 |
状态1? 状态2 结果 0? ? ? ?0 0 0? ? ? 1 0 1? ? ? ?0 0 1 ? ? ? 1 1 |
3.逻辑或运算OR
1 2 3 4 5 |
状态1? 状态2 结果 0? ? ? ?0 0 0? ? ? 1 1 1? ? ? ?0 1 1 ? ? ? 1 1 |
4.逻辑异或运算XOR
1 2 3 4 5 |
状态1? 状态2 结果 0? ? ? ?0 0 0? ? ? 1 1 1? ? ? ?0 1 1 ? ? ? 1 0 |
逻辑运算运用到图像中计算方法,也就是将两张图像对齐叠加,对每个点进行逻辑运算,得到一张新图(也可以将结果直接存回原图)。图像的逻辑运算主要应用于图像增强、图像识别、图像复原和区域分割等领域,与代数运算不同,逻辑运算既关注图像像素点的数值变化.又重视位变换的情况.
以下写个例子:两张图A 图B,分别做4种基本逻辑运算,
1.逻辑补运算NOT
2.逻辑与运算AND (A图像与B图像共同部份)
3.逻辑或运算OR? (A图像加B图像部份)
4.逻辑异或运算XOR? (A图像加B图像部份,去除叠交部份)
注:理解完4种基本逻辑运算后,可以对基本逻辑运算进行组合,实现组合逻辑运算。一般实际运用中都是组合逻辑运算,所以一定要理解图像基本逻辑运算。
You revealed this terrifically! diflucan for yeast infection
Thanks, I value this. fluconazole cream
Incredible loads of amazing knowledge! cbd gummies
Nicely put. Many thanks. canada pharmacies online
Reliable forum posts. With thanks! https://viagrapython.com/
Fine information. Many thanks. viagra pills
Amazing loads of wonderful tips. aarp recommended canadian pharmacies
Nicely put. Many thanks. canadian online pharmacy
Kudos, I value this! advair
You said it superbly. gabapentin generic
You stated this adequately. benefits of cbd oil
You actually suggested it wonderfully! generic viagra 100mg sildenafil
Incredible many of great knowledge! hydrochlorothiazide 25 mg
This is nicely put! ! furosemide
Thanks. Plenty of advice!
top rated online canadian pharmacies
Nicely put, With thanks. canada pharmacies online prescriptions
You’ve made your point extremely clearly!! buy cialis usa
Thanks. Loads of material.
https://viagrapycharm.com/
Thanks a lot. Loads of content!
hydrochloride medication
Thank you! I enjoy this. north west pharmacy canada