sequence of image processing using the same background

조회 수: 3 (최근 30일)
engineer
engineer 2018년 5월 22일
댓글: Image Analyst 2018년 5월 30일
Hi everybody I have a batch of images. For each image, I am using the same background image. How can I analyze all images using the same background image? When I read the one image, I will have to change the name of the background image as well, but I can not manage to change the background image name for each image that I need to analyze. I would also appreciate if you give me some info, suggestion regarding analyzing the batch of images in the same code?
Thanks!!!

채택된 답변

Image Analyst
Image Analyst 2018년 5월 22일
Inside the loop, create the new background image filename and read it in with imread(). Then read in the test image and use both of them to do your analysis.
  댓글 수: 11
engineer
engineer 2018년 5월 30일
Thank you very much. I was able to read all images including my background image. However, When I run the programme, correctedImage was full of white. I checked its pixel, it consist of just pixel 1, which is totaly white. What would be the problem? I could get a good background-corrected image.
Image Analyst
Image Analyst 2018년 5월 30일
Unfortunately you forgot to include your code, and I'm heading off to the airport in a couple of hours. Try this:
imshow(correctedImage, []);
It's possible that your background image is darker than your test images so the ratio is always greater than one so you need the empty brackets in imshow().

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by