Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj01 committed Apr 12, 2024
1 parent e09c841 commit 7bf7b17
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 26 deletions.
5 changes: 3 additions & 2 deletions articles/2024/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ Electron面向纯前端开发者
## 放大镜Loupe

对图片放大本质就是截取一种部分图片数据来显示
- [Loupe.js allows you to add photorealistic loupes (magnifier) to images on your webpages. ](https://sprayhank.github.io/CVI/loupe/")这个使用canvas来实现,是因为它们需要一个更酷的效果,但是这个使用了两张图片来实现更酷的效果,这也是为什么需要两个canvas的原因
- [Loupe demo (mouse over the image)](https://nishanths.github.io/loupe-js/)这个实现简单些,利用css背景截图来实现的部分效果
- [Loupe.js allows you to add photorealistic loupes (magnifier) to images on your webpages. ](http://sprayhank.github.io/CVI/loupe/)这个使用canvas来实现,是因为它们需要一个更酷的效果,但是这个使用了两张图片来实现更酷的效果,这也是为什么需要两个canvas的原因
- [Loupe demo (mouse over the image)](https://nishanths.github.io/loupe-js/)这个实现简单些,利用css背景截图来实现的部分效果[github有源码](https://github.com/nishanths/loupe-js)
- [文言一心给出的一个方案,这个方案很简单,但是不能自绘canvas](https://playcode.io/1833399?v=2)
- 游戏中也有放大的功能
1. 实现倍镜,就是利用渲染区域的变化来控制,实现必须是perspective camera来投影渲染。是整块视图都改变了
2. 用两个摄像机,主相机不变,副相机渲染成一张RenderTexture,并将这种RenderTexture赋值给MirrorObject对象上,MirrorObject对副相机不可见
Expand Down
2 changes: 1 addition & 1 deletion articles/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@
// filetype:pdf // 搜索特定文件格式
// A site http://XXX.com 搜索某网页中的内容
// 格式:A intitle B (注意有2个空格)结果页面标题包含关键词
// ss site stackoverflow.com
// ss site stackoverflow.com 指定网站搜索, 如 canvas pick color area site:stackoverflow.com
```
3 changes: 2 additions & 1 deletion cg/canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ ctx.translate(-center.x, -center.y);

## 参考

- [OffscreenCanvas-离屏canvas使用说明](https://zhuanlan.zhihu.com/p/100375855)
- [OffscreenCanvas-离屏canvas使用说明](https://zhuanlan.zhihu.com/p/100375855)
- [canvas-scale](https://dustinpfister.github.io/2019/03/06/canvas-scale/),这篇文章很详细的介绍了canvas关于scale的细节,配合[playground](https://playcode.io/1833399)查看结果
1 change: 0 additions & 1 deletion cg/ct.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

## [DICOM--Digital Imaging and Communications in Medicine](https://www.dicomlibrary.com/)


### 概念

**Application Entity (AE)**,Application Entity 代表DICOM通信中的一个终端,可以代表一个系统或者一个程序。每个系统中的AE拥有一个唯一的Application Entity Title (AET) 。AET的要求时不能超过16个字节。一个设备上面可以有很多个AE。
Expand Down
2 changes: 2 additions & 0 deletions cpl/cplusplus.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ base + sizeof * 偏移量,数组指针好像就是这样的,用*(a+b)访
- [C++ Template这个文章描述的很清晰,思路也很通畅](https://www.3dgep.com/beginning-cpp-template-programming/)
- [C++ stories](https://www.cppstories.com/)
- [PDFHummus is a Fast and Free C++ Library for Creating, Parsing an Manipulating PDF Files and Streams.](https://github.com/galkahana/PDF-Writer)
- [Software optimization resources,涉及很多底层的技术和文档,值得去看看](https://www.agner.org/optimize/#manuals)
- [Calling conventions for different C++ compilers and operating systems](https://www.agner.org/optimize/calling_conventions.pdf),更新到2023年的技术
## 工具
Expand Down
4 changes: 1 addition & 3 deletions index/article.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# articles

- [留心的资源](../articles/resource.md)
- [个人认识](../articles/personal.ideas.md)
- [资源与工具](../articles/resource.md)
- [3D引擎](../cg/engines.md)
- [Markdown](../articles/markdown.md)
- [资源与工具](../articles/resource.md)
- [Mathjax](../articles/mathjax.md)
- [数学概念笔记](../articles/notes/math.md)
- [软硬件一体的项目](../articles/others/robot.md)
Expand Down
14 changes: 1 addition & 13 deletions index/online.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,10 @@

- [Denis Bakhvalov, 关于性能优化的一个博客](https://easyperf.net/)
- [SaschaWillems,业余贡献实时3D以Khronos标准软件开发者](https://www.saschawillems.de/)
- [Agner Fog Research, 涉及很多编程知识,很好的文档几何,作者自己更新自己的理解与文档](https://www.agner.org/?e=0#0)

## 工具

### 搜索技巧

- 指定网站搜索, 如 canvas pick color area site:stackoverflow.com

### 文档

- [PubScholar公益学术平台](https://pubscholar.cn/)
- [国家标准全文公开系统](https://openstd.samr.gov.cn/bzgk/gb/index)
- [msdn](https://learn.microsoft.com/zh-cn/)
- [个人关于微软的开发文档](https://msdn.itellyou.cn/)
- [MDN Web Docs](https://developer.mozilla.org/en-US/)
- [HandWiki is a wiki encyclopedia for collaborative editing of articles on computing, science, technology and general knowledge](https://handwiki.org/wiki/Start)

### playground

- [Javascript Playground--邮箱[email protected]](https://playcode.io/)
Expand Down
15 changes: 11 additions & 4 deletions index/standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
- [Promises/A+](https://promisesaplus.com/)
- [then Differences from Promises/A](https://promisesaplus.com/differences-from-promises-a)

## W3C

[MDN的文档用语](https://developer.mozilla.org/en-US/docs/MDN/Guidelines/Conventions_definitions#Experimental)
## [W3C](https://www.w3.org/)

- [W3C standards and drafts docs](https://www.w3.org/TR/?filter-tr-name=file+api)
- [MDN的文档用语](https://developer.mozilla.org/en-US/docs/MDN/Guidelines/Conventions_definitions#Experimental)
- [IETF Document](https://tools.ietf.org/html/)
- [Hypertext Transfer Protocol -- HTTP/1.1](https://www.w3.org/Protocols/rfc2616/rfc2616.html)
- [UI Events KeyboardEvent code Values](https://www.w3.org/TR/uievents-code/#key-alphanumeric-writing-system)
Expand Down Expand Up @@ -52,6 +52,7 @@
- [ImageMagick](https://imagemagick.org/index.php)
- [The WebAssembly library for ImageMagick: magick-wasm](https://github.com/dlemstra/magick-wasm)
- [browser demo](https://dlemstra.github.io/magick-wasm-docs/classes/magick-image)
- [The Insight Toolkit (ITK) is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segmentation, and registration. ](https://github.com/InsightSoftwareConsortium/ITK)


### OHIF
Expand All @@ -70,4 +71,10 @@
- [The BitTorrent Protocol Specification](https://www.bittorrent.org/beps/bep_0003.html)
- [Bittorrent Protocol Specification v1.0](https://wiki.theory.org/BitTorrentSpecification)
- [tinyTorrent: 从头写一个 Deno 的 BitTorrent 下载器](https://cjting.me/2020/10/31/tinytorrent-a-deno-bt-downloader/)
- [Simple, robust, BitTorrent tracker(client & server) implementation](https://github.com/webtorrent/bittorrent-tracker)
- [Simple, robust, BitTorrent tracker(client & server) implementation](https://github.com/webtorrent/bittorrent-tracker)
- [PubScholar公益学术平台](https://pubscholar.cn/)
- [国家标准全文公开系统](https://openstd.samr.gov.cn/bzgk/gb/index)
- [msdn](https://learn.microsoft.com/zh-cn/)
- [个人关于微软的开发文档](https://msdn.itellyou.cn/)
- [MDN Web Docs](https://developer.mozilla.org/en-US/)
- [HandWiki is a wiki encyclopedia for collaborative editing of articles on computing, science, technology and general knowledge](https://handwiki.org/wiki/Start)
5 changes: 4 additions & 1 deletion index/stomatological.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,7 @@ I轴向右增大,J轴向右增大,K轴向后增大。除了每个体素的

## 参考

- [3DSlicer -- Coordinate systems](https://www.slicer.org/wiki/Coordinate_systems)
- [3DSlicer -- Coordinate systems](https://www.slicer.org/wiki/Coordinate_systems)
- [VolView is an open source radiological viewer developed for clinical professionals.](https://volview.kitware.com/)
- [app online](https://volview.kitware.app/)
- [github](https://github.com/Kitware/VolView)
27 changes: 27 additions & 0 deletions web/nginx/9220.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
server {
listen 9220;
server_name localhost;
#
charset utf-8;

location / {

root f:/fullstack/viewer/dist_test;

autoindex on;

autoindex_exact_size on;

autoindex_localtime on;

charset utf-8;

# add_header Content-Type 'application/json;charset=UTF-8';
# add_header Accept 'application/json;charset=UTF-8';
add_header Cross-Origin-Embedder-Policy require-corp;
add_header Cross-Origin-Opener-Policy same-origin;

default_type text/html;
index index.html index.htm;
}
}
4 changes: 4 additions & 0 deletions web/nginx/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ xcopy /s /e /i /y win\nginx.conf e:\tools\nginx-1.25.0\conf\nginx.conf

(Get-Content f:\meijie\lmj01.github.io\web\nginx\lmj01.conf) -Replace '/mnt/f/meijie/lmj01.github.io', 'f:/meijie/lmj01.github.io' | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\lmj01.conf

# 测试环境
(Get-Content f:\meijie\lmj01.github.io\web\nginx\9220.conf) | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\9220.conf

# 测试环境
(Get-Content f:\meijie\lmj01.github.io\web\nginx\9930.conf) -Replace '/mnt/f/fullstack/mjdemo', 'f:/fullstack/mjdemo' | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\9930.conf

# 临时的
Expand Down
4 changes: 4 additions & 0 deletions web/nginx/win/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ http {
return 301 http://127.0.0.1:9930/;
}

location ^~ /viewer {
return 301 http://127.0.0.1:9210/;
}

# 反向代理
# 前缀匹配
location ^~ /lmj01 {
Expand Down

0 comments on commit 7bf7b17

Please sign in to comment.