필터 지우기
필터 지우기

superimose of two images

조회 수: 4 (최근 30일)
praveen rai
praveen rai 2017년 12월 31일
댓글: Walter Roberson 2018년 1월 1일
@image analyst u have provided me the code how to superimpose and it was very help full but I have another image and I am not able to that can u help me out
I am providing u code as well as my images
my 1st image in which i want to put that blank line on to my 2nd image
my 2nd image

답변 (1개)

Walter Roberson
Walter Roberson 2017년 12월 31일
Remember that in images, white is data present. When you superimpose the large amounts of white from the top image on top of the grid on the bottom, then almost everything is going to turn white, leaving you with only a few dots where the curved line from the first happens to intersect the grid.
You may wish to consider converting to black and white, then inverting the image so that the black becomes true, doing a logical or of the two, then inverting again.
  댓글 수: 2
praveen rai
praveen rai 2018년 1월 1일
U mean to say first I have to invert my input images den logical OR operation perform
Walter Roberson
Walter Roberson 2018년 1월 1일
No, you do not have to do that: that is just a typical way of thinking about doing the addition of images.
In your particular case, you could instead AND the two images in their present form:
combine_image = FirstMatrix & SecondMatrix;
provided that they are the same size.
This will give 0 anywhere that either image is 0, which is equivalent to drawing in black.

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

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by