How extract boundary of red region in attached figure.

조회 수: 1 (최근 30일)
varunesh
varunesh 2018년 9월 11일
편집: varunesh 2018년 9월 13일
Hello All,
Actually, I want to make masking file of data above 1000m hight. I have already found a longitude and latitude of above 1000m height and plot that in red color but I want to just the boundary of this whole red plotted region. Please help me. Thank you so much in advance.
I am attaching figure and data. Below is code which I am using for plotting this.
z2 = z./9.8; z2 = z2';
xx = find((z2>1000));[x,y]=meshgrid(lons,lats);
plot(x,y,'*k')
hold on;plot(x(xx),y(xx),'*r');axis tight;

답변 (1개)

Image Analyst
Image Analyst 2018년 9월 11일
Do you have the Image Processing Toolbox? If so, simply use bwboundaries().
  댓글 수: 7
Image Analyst
Image Analyst 2018년 9월 12일
What do you REALLY want to accomplish? If you get this as an image, what would it help you do that you cannot do now?
varunesh
varunesh 2018년 9월 13일
편집: varunesh 2018년 9월 13일
I had already said that I want to longitude and latitude of all boundaries. With the help that boundaries I will mask the original data. I have already one example boundary of Tibet(Above to northern India). I am sending you this example boundary and code. You can see that how do I mask data above 1000m height from sea level from the help of this Tibet boundary.
cst = load('tibet_bath1000.txt');
inix = inpolygon(ln,lt,cst(:,1),cst(:,2));
nnum(inix)=[];
ln and lt is original logitude and latitude of data.

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

카테고리

Help CenterFile Exchange에서 Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by