python - 图像变化检测照度变化和小偏移的问题

标签 python c++ image-processing

“不受光线,偏移和方向变化影响的图像变化检测”的最佳解决方案是什么?

Python或C ++很好

随附的示例图片:

original and second image

image

image_

最佳答案

您可以将图像对齐与功能匹配配合使用,例如:

//Load 2 Slices with Body Region  
 img1 = LoadImageBody("Slice01");   
 img2 = LoadImageBody("Slice02");  
 //Calculate Keypoints&Descriptors  
 KeyPt1 = SURF(img1);  
 KeyPt2 = SURF(img2); 
 //Find Corresponding Point Pairs   
 Pairs = FindPairs(KeyPt1, KeyPt2); 
 //Find Homography Matrix   
 H = FindHomography(Pairs); 
 //Calculate Image Transformation  
 imgWarp =WarpPerspective(img2, H); 
 //Save Transformation Result   
 SaveImg("Warp.png", imgWarp); 
 //Calculate Two Images Difference 
 imgDiff = AbsDiff(img1, imgWrp); 
 //Save Difference Result
 SaveImg("Diff.png", imgDiff); 


但是我没有解决不同的照度和颜色变化的方法..我也在寻找..

关于python - 图像变化检测照度变化和小偏移的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52171257/

相关文章:

Python - 在对齐的列中打印 CSV 字符串列表

c++ - 如何创建不可复制元素的容器

c++ - 引用指针问题?

algorithm - 如何提取三个主要掌纹

python - 良好的单应性特征匹配产生的变换不充分

python - 在 Pandas 的特定位置获取元音单元格中的单词

python - “uuid”是该函数的无效关键字参数

python - pandas 中的分割日期

c++ - 如果我输入了两个连续的零,我该如何让这个程序列出来?

android - 浏览图像和人脸检测