how can reconstruct one grayscale image with the other??

조회 수: 2 (최근 30일)
sara
sara 2014년 9월 18일
댓글: Image Analyst 2014년 9월 22일
I have 2 grayimage m1:
and m2:
you can see that m1 and m2 has a little differences.. Is there any way to reconstruct m1 wit m2?? I want to have m1 without any holes and any thing that are like holes... should I turn this images to binary image?

답변 (2개)

Image Analyst
Image Analyst 2014년 9월 18일
I'm sure we've talked this before. You can use active contour (demo attached again) to fill in bays on your image. Then use that to extract the new gray scale image
smoothBorder = activecontour(grayImage, mask, 400, 'edge');
newGrayImage = grayImage; % Initialize
newGrayImage(~smoothBorder) = 0; % Black outside smoothed border.
  댓글 수: 9
sara
sara 2014년 9월 20일
편집: sara 2014년 9월 20일
thanks Image Analyst yes I understand....I should try these things and merge these with "something that are in my mind and I think maybe is true" ... I will comeback soon.thank you for the time that you spend on my question. Always Your advice are very useful for me.
Image Analyst
Image Analyst 2014년 9월 22일
If it's the best answer you'll think you'll get from anyone, and at least got you started in the right direction, then can you mark it as accepted?

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


sara
sara 2014년 9월 22일
dear Image Analyst
If we want to use activecontour our mask should be larger than marker...so If we have for example 13 slices that we want to reconstruct one of them with the others so first we should know that wich one can be mask??am I right?
  댓글 수: 1
Image Analyst
Image Analyst 2014년 9월 22일
I haven't used activecontour a lot. I don't know if the starter mask has to be larger than the final mask, or if it can be smaller, or go both inside and outside. Not sure - you'd have to try it. At least that's what I think you were asking, because morphological reconstruction with a marker image using imreconstruct() is a different thing.

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

Community Treasure Hunt

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

Start Hunting!

Translated by