图像变化检测中的问题照度变化和小位移

2024-04-25 10:25:50 发布

您现在位置:Python中文网/ 问答频道 /正文

“不受光照、位移和方向影响的图像变化检测”的最佳解决方案是什么?你知道吗

Python或c++很好

附图片示例:

original and second image

image

image_


Tags: 图像示例解决方案方向光照变化检测附图片
1条回答
网友
1楼 · 发布于 2024-04-25 10:25:50

可以将图像对齐与特征匹配一起使用,例如:

//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); 

但我没有一个不同的照明和颜色变化的解决方案。。我也在找。。你知道吗

相关问题 更多 >