How extract boundary of red region in attached figure.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195568/image.png)
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;
0 Commenti
Risposte (1)
Image Analyst
il 11 Set 2018
Do you have the Image Processing Toolbox? If so, simply use bwboundaries().
7 Commenti
Image Analyst
il 12 Set 2018
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?
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!