Which image processing technique I should use ?

There is 1 good pcb board with components etc. resistor, ic chip , capacitor will be soldered. And 1 bad pcb with missing component. What approach or algorithm should I use ? To detect the missing component ? Pattern matching ? I am using raspberry pi with raspberry pi camera with matlab.

 채택된 답변

Walter Roberson
Walter Roberson 2016년 1월 12일

0 개 추천

image registration and then image subtraction.

댓글 수: 2

Be sure to cast to double to avoid clipping (if they are integer images after registration):
diffImage = abs(double(registeredImage1) - double(registeredImage2));
% Threshold to find substantial differences, not noise
diffImage = diffImage > 5; % Or whatever value works.
imshow(diffImage, []);
See help on imregister().
And remember to take into account potential differences in light levels or shadowing.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Vincent Chan
Vincent Chan 2016년 1월 12일

0 개 추천

any codes which you can recommend me to reference on? as i m new to matlab especially on image processing toolbox.

댓글 수: 2

How consistent are the images? Is it possible that they are different rotations? If so then are the rotations only multiples of 90 degrees or could they be arbitrary? Is the lighting the same for each image? Is the distance between the camera and the board the same for each image so the occupied portion of the image is always the same size?
not much of rotation. likelihood will be fixed in place. Lighting will be using 9V LED light with 9v battery. the distance of the capture image will be the same as there will be a structure for the camera.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

질문:

2016년 1월 12일

댓글:

2016년 1월 12일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by