|
203 | 203 | bölgeyi pürüzsüz fonksiyonlarla yaklaşık temsil etmenin en iyi yolu. Veri tabanı |
204 | 204 | sadece bu değerleri taşıyacak. |
205 | 205 |
|
206 | | -Bizim bu konuya girmemizin sebebi Google Elevation APİ ile aldığımız yükseklik |
| 206 | +Bizim bu konuya girmemizin sebebi Google Elevation API ile aldığımız yükseklik |
207 | 207 | verilerini verimli şekilde kullanma ihtiyacı idi. |
208 | 208 |
|
209 | | -Kaynaklar |
| 209 | +\begin{minted}[fontsize=\footnotesize]{python} |
| 210 | +np.random.seed(0) |
210 | 211 |
|
211 | | -[1] Neto, {\em Radial Basis Functions}, \url{http://www.di.fc.ul.pt/~jpn/r/rbf/rbf.html} |
| 212 | +S = 200 |
212 | 213 |
|
213 | | -[2] Pouderoux, {\em Adaptive Hierarchical RBF Interpolation for Creating Smooth Digital Elevation Models} |
214 | | - \url{https://hal.archives-ouvertes.fr/hal-00308008/document} |
| 214 | +x = np.linspace(36,37,D) |
| 215 | +y = np.linspace(32,33,D) |
215 | 216 |
|
216 | | -\end{document} |
| 217 | +xx,yy = np.meshgrid(x,y) |
| 218 | +znew = func(xx,yy) |
| 219 | +xx = xx.reshape(D*D) |
| 220 | +yy = yy.reshape(D*D) |
| 221 | +znew = znew.reshape(D*D) |
| 222 | + |
| 223 | +from scipy.interpolate import Rbf |
| 224 | +rbfi = Rbf(xx,yy,znew) |
| 225 | + |
| 226 | +xx = xx.reshape(D,D) |
| 227 | +yy = yy.reshape(D,D) |
| 228 | +znew = znew.reshape(D,D) |
217 | 229 |
|
| 230 | +fig = plt.figure() |
| 231 | +ax = fig.gca(projection='3d') |
| 232 | +surf = ax.plot_surface(xx, yy, znew, cmap=cm.coolwarm,linewidth=0, antialiased=False) |
| 233 | +fig.colorbar(surf, shrink=0.5, aspect=5) |
| 234 | +plt.savefig('linear_app88rbf_03.png') |
| 235 | +\end{minted} |
| 236 | + |
| 237 | +\includegraphics[width=20em]{linear_app88rbf_03.png} |
218 | 238 |
|
219 | 239 |
|
| 240 | +Kaynaklar |
| 241 | + |
| 242 | +[1] Neto, {\em Radial Basis Functions}, \url{http://www.di.fc.ul.pt/~jpn/r/rbf/rbf.html} |
220 | 243 |
|
| 244 | +[2] Pouderoux, {\em Adaptive Hierarchical RBF Interpolation for Creating Smooth Digital Elevation Models} |
| 245 | + \url{https://hal.archives-ouvertes.fr/hal-00308008/document} |
221 | 246 |
|
| 247 | +\end{document} |
222 | 248 |
|
0 commit comments