File:Level set method.jpg
出自Wikimedia Commons
跳至導覽
跳至搜尋
Level_set_method.jpg (800 × 600 像素,檔案大小:89 KB,MIME 類型:image/jpeg)
檔案資訊
結構化資料
說明
摘要
[編輯]描述Level set method.jpg | Illustration of en:Level set method. |
日期 | 2004年11月25日 (原始上傳日期) |
來源 | Transferred from en.wikipedia to Commons. |
作者 | 英文維基百科的Olegalexandrov |
授權條款
[編輯]Public domainPublic domainfalsefalse |
此作品已由其作者,英文維基百科的Olegalexandrov,釋出至公有領域。此授權條款在全世界均適用。 這可能在某些國家不合法,如果是的話: Olegalexandrov授予任何人有權利使用此作品於任何用途,除受法律約束外,不受任何限制。Public domainPublic domainfalsefalse |
function level_set_method()
figure(1); clf; % pop up a figure, and clean it up
for i=1:3 % make a loop to draw the six pictures in pairs
level_disp(i);
end
print('-djpeg100', '-r100', 'level_set_method.jpg') % save to file.
function level_disp(p)
Lx=2.5; Ly=2.5; % box is [-Lx Lx] x [-Ly, Ly]
N=60; % number of points (don't make it big, code will be slow)
heights=[0.7+eps, 0.00001, -0.7+eps]; % cut the surface at these heights
height=heights(p); % current cut
[X, Y]=meshgrid(-Lx:(1/N):Lx, -Ly:(1/N):Ly); % X and Y coordinates
Z=height-0.5*(X-1.78).*X.^2.*(X+1.78)-Y.^2; % Z=f(X, Y) -surface
lowest=-4;
[m, n]=size(Z);
for i=1:m
for j=1:n
if Z(i, j)< lowest; % truncate the surface somewhere
Z(i, j)=NaN;
end
end
end
% draw the surface and the plane cut
figure(1); subplot('Position', [(p-1)/3, 0., 0.33, 0.5]); hold on;
surf(X, Y, Z, 'FaceColor','red', 'EdgeColor','none', 'FaceAlpha', 1);
surf(X, Y, zeros(m, n), 'FaceColor','blue', 'EdgeColor','none', 'FaceAlpha', 0.3);
camlight left;lighting phong; % make nice lightning
axis([-Lx Lx -Ly Ly lowest 1.8]); axis equal; axis off; %the coordinate box
view(-23, 34) % angle of view (polar coordinates)
% draw the shape (cross-section)
figure(1); subplot('Position', [(p-1)/3, 0.5, 0.33, 0.5]); % subwindow
[c, stuff] = contour(X, Y, Z, [0, 0]); % draw the contours.
l=c(2, 1);
x=c(1,2:(l+1)); y=c(2,2:(l+1)); % get x and y of contours
H=fill(x, y, 0.6*[1, 1, 1]); set(H, 'EdgeColor', 'none'); % draw the shape
[u, v]=size(c);
if v > l+2 % special case: two connected components
x=c(1,(l+3):(2*l)); y=c(2,(l+3):(2*l)); % contours
hold on; % hold the graph for the second component
H=fill(x, y, 0.6*[1, 1, 1]); set(H, 'EdgeColor', 'none');
end
axis equal; axis off; axis([-Lx Lx -Ly Ly]); % frame size
原始上傳日誌
[編輯]The original description page was here. All following user names refer to en.wikipedia.
- 2004-11-25 03:20 Olegalexandrov 800×600×8 (90808 bytes) Illustration of level set method. {{PD}}
本圖片是以PNG、GIF或JPEG格式上傳。然而,其中包含的資料或訊息,應該重新建立成可縮放向量圖形(SVG)檔案,以更有效率或更準確的方式儲存。如有可能,請上傳本圖片的SVG格式版本。在上傳之後,請修改維基各姊妹計畫中所有使用舊版圖片的條目(列在圖像連結章節中),替換為新版圖片,並在舊圖片的描述頁中加入{{Vector version available|新圖片名稱.svg}}模板,同時移除本模板。
|
這個file中的所有圖片名上傳在JPEG格式,即使它包含非照片數據。該信息可以以PNG或SVG格式更有效或更準確地存儲。 如果可能,請上傳此圖像的PNG或SVG版本,不含壓縮失真,源自非JPEG源(或移除現存的失真)。完成後,請使用{{Superseded|NewImage.ext}} 標記JPEG版本並刪除此標記。此標籤不應應用於照片或掃描件。如需更多信息,請參閱{{BadJPEG}}。 |
檔案歷史
點選日期/時間以檢視該時間的檔案版本。
日期/時間 | 縮圖 | 尺寸 | 用戶 | 備註 | |
---|---|---|---|---|---|
目前 | 2007年6月2日 (六) 03:19 | 800 × 600(89 KB) | Oleg Alexandrov(對話 | 貢獻) | {{Information |Description= Illustration of en:Level set method. |Source=Originally from [http://en.wikipedia.org en.wikipedia]; description page is/was [http://en.wikipedia.org/w/index.php?title=Image%3ALevel_set_method.jpg here]. |Date=2004-11-25 ( |
無法覆蓋此檔案。
檔案用途
沒有使用此檔案的頁面。
全域檔案使用狀況
以下其他 wiki 使用了這個檔案:
- en.wikipedia.org 的使用狀況
- es.wikipedia.org 的使用狀況
- fr.wikipedia.org 的使用狀況
- pl.wikipedia.org 的使用狀況
- zh.wikipedia.org 的使用狀況
詮釋資料
此檔案中包含其他資訊,這些資訊可能是由數位相機或掃描器在建立或數位化過程中所新增的。若檔案自原始狀態已被修改,一些詳細資料可能無法完整反映出已修改的檔案。
_error | 0 |
---|