From 90910710ccfee0d2cdc61885b496fed0d6f42bcd Mon Sep 17 00:00:00 2001 From: lmj01 Date: Wed, 29 May 2024 17:31:37 +0800 Subject: [PATCH] update --- cg/image/ColorProfile.md | 6 --- cg/image/algorithm.md | 17 +++++++ cg/image/blur.md | 15 ------- cg/image/exif.md | 18 -------- cg/image/gimp.md | 26 ----------- cg/image/imageMagick.md | 12 ----- cg/image/index.md | 12 +++++ cg/image/tool.md | 64 ++++++++++++++++++++++++++- cg/tools/modelFile.md | 6 ++- exercises/index.md | 5 ++- {articles/notes => exercises}/math.md | 0 exercises/physics.md | 12 +++++ index/standard.md | 17 ++----- 13 files changed, 116 insertions(+), 94 deletions(-) delete mode 100644 cg/image/ColorProfile.md delete mode 100644 cg/image/blur.md delete mode 100644 cg/image/exif.md delete mode 100644 cg/image/gimp.md delete mode 100644 cg/image/imageMagick.md create mode 100644 cg/image/index.md rename {articles/notes => exercises}/math.md (100%) diff --git a/cg/image/ColorProfile.md b/cg/image/ColorProfile.md deleted file mode 100644 index 3f4aa64..0000000 --- a/cg/image/ColorProfile.md +++ /dev/null @@ -1,6 +0,0 @@ -# Color Profile -Pro RGB与sRGB的色彩空间的差异 -Convert to sRGB和Embed Color Profile - -[ICC](https://www.color.org/index.xalter) 文件是国际色彩联盟(International Color Consortium, ICC)提出的,是用来标识输入输出设备颜色特性的数据文件。所有的显示设备,都可以用各自的 ICC 文件来描述其颜色特性。ICC 文件定义了设备能显示的色彩范围和色彩的正确与否。 - diff --git a/cg/image/algorithm.md b/cg/image/algorithm.md index bf0d594..f9cf8a4 100644 --- a/cg/image/algorithm.md +++ b/cg/image/algorithm.md @@ -5,6 +5,23 @@ - [Otsu Thresholding大律法--最大类间方差法原理及实现](http://www.labbookpages.co.uk/software/imgProc/otsuThreshold.html) + +## Blur +> 模糊处理 + +### Gaussian-Blue +高斯模糊 + + +### 参考 +- [使用高斯模糊的效果逐步加载图片(仿 Medium)](https://segmentfault.com/a/1190000006743512) +- [How Medium does progressive image loading](https://jmperezperez.com/blog/medium-image-progressive-loading-placeholder/) +- [Fast and almost Gaussian blur ](https://github.com/flozz/StackBlur) +- [Fast gaussian blur in pure JavaScript via IIR filer ](https://github.com/nodeca/glur) +- [妧一峰--高斯模糊的算法](http://ruanyifeng.com/blog/2012/11/gaussian_blur.html) +- [Stackblur and Quadratic Stackblur](https://observablehq.com/@jobleonard/mario-klingemans-stackblur) +- [gaussian_blur](https://github.com/Sachs27/gaussian_blur) + ## 颜色转换 - [Change color lightness](https://www.30secondsofcode.org/js/s/change-lightness/) diff --git a/cg/image/blur.md b/cg/image/blur.md deleted file mode 100644 index f063717..0000000 --- a/cg/image/blur.md +++ /dev/null @@ -1,15 +0,0 @@ -# Blur -> 模糊处理 - -## Gaussian-Blue -高斯模糊 - - -## 参考 -- [使用高斯模糊的效果逐步加载图片(仿 Medium)](https://segmentfault.com/a/1190000006743512) -- [How Medium does progressive image loading](https://jmperezperez.com/blog/medium-image-progressive-loading-placeholder/) -- [Fast and almost Gaussian blur ](https://github.com/flozz/StackBlur) -- [Fast gaussian blur in pure JavaScript via IIR filer ](https://github.com/nodeca/glur) -- [妧一峰--高斯模糊的算法](http://ruanyifeng.com/blog/2012/11/gaussian_blur.html) -- [Stackblur and Quadratic Stackblur](https://observablehq.com/@jobleonard/mario-klingemans-stackblur) -- [gaussian_blur](https://github.com/Sachs27/gaussian_blur) \ No newline at end of file diff --git a/cg/image/exif.md b/cg/image/exif.md deleted file mode 100644 index 4578465..0000000 --- a/cg/image/exif.md +++ /dev/null @@ -1,18 +0,0 @@ -# Exif - -read, write and edit meta information - -[ExifTool](https://exiftool.org/)工具可以用来查看meta信息 - -exiftool -a -S -G0 xxx.ext - -## extensions - -### File -FileType: JPEG,JPEG,TIFF -FileTypeExtension: jpg,tif -MIMEType: image/jpeg,image/tiff -### EXIF -oritentation horizontal(normal) - -[exif tags names](https://exiftool.org/TagNames/EXIF.html) \ No newline at end of file diff --git a/cg/image/gimp.md b/cg/image/gimp.md deleted file mode 100644 index cea66bb..0000000 --- a/cg/image/gimp.md +++ /dev/null @@ -1,26 +0,0 @@ -# GIMP - -## 抠图 - -利用蒙板工具进行抠图的逻辑 - -- 复制原图层,得到mask图层 -- 单色化 - - 颜色 -- 分量 -- 单色混合器 - - 对单色混合器中的红、绿、蓝三色的值,使得模板与背景尽量分离 - - 颜色 -- 反相 -- 增加对比度 - - 对经过反相得到的图像,使用 **画笔** 工具把模板全部描成 **白色** - - 颜色 -- 亮度-对比度 ,进一步提高模板与背景的反差 - - 选中原图层,添加图层蒙板 - - 选择 **白色(全不透明)** - - 把mask图层复制到原图层上 - - 固定图层就应用到mask图层上去了 - - 此时就可以看到应用了mask图层的原图层结果了 -- 描画轮廓 - - 原图层中有两个小图,点击mask,选择 **显示图层蒙板** - - 这样就可以对原图的蒙板进行描画了,描黑就是隐藏,描白就是显现 - -## gif - -- \ No newline at end of file diff --git a/cg/image/imageMagick.md b/cg/image/imageMagick.md deleted file mode 100644 index ff51f1b..0000000 --- a/cg/image/imageMagick.md +++ /dev/null @@ -1,12 +0,0 @@ -# [ImageMagick](https://imagemagick.org/) - -```html -
-    
-
-``` - -## 参考 -- [ImageMagick - Drawing](https://ohmyweekly.github.io/notes/imagemagick-drawing/) - -- [临时1](https://juejin.cn/post/7044561761747337223) \ No newline at end of file diff --git a/cg/image/index.md b/cg/image/index.md new file mode 100644 index 0000000..c4975ca --- /dev/null +++ b/cg/image/index.md @@ -0,0 +1,12 @@ +# 图像 + +- [工具](/cg/image/tool.md) + +- [gif](/cg/image/gif.md) +- [png](/cg/image/png.md) +- [JPEG](/cg/image/JPEG.md) + - [Image Process](/cg/image/ImageProcessing.md) +- [tiff](/cg/image/tiff.md) + + +- [ImageMagick](/cg/image/imageMagick.md) \ No newline at end of file diff --git a/cg/image/tool.md b/cg/image/tool.md index 1f060ed..34e2496 100644 --- a/cg/image/tool.md +++ b/cg/image/tool.md @@ -4,4 +4,66 @@ An image cache & resize service. Manipulate images on-the-fly with a worldwide cache. 据说速度很快 - [Source code of wsrv.nl (formerly images.weserv.nl), to be used on your own server(s). ](https://github.com/weserv/images) -- [A fast image processing library with low memory needs. ](https://github.com/libvips/libvips) \ No newline at end of file +- [A fast image processing library with low memory needs. ](https://github.com/libvips/libvips) + +## Color Profile +Pro RGB与sRGB的色彩空间的差异 +Convert to sRGB和Embed Color Profile + +[ICC](https://www.color.org/index.xalter) 文件是国际色彩联盟(International Color Consortium, ICC)提出的,是用来标识输入输出设备颜色特性的数据文件。所有的显示设备,都可以用各自的 ICC 文件来描述其颜色特性。ICC 文件定义了设备能显示的色彩范围和色彩的正确与否。 + +## Exif + +read, write and edit meta information + +[ExifTool](https://exiftool.org/)工具可以用来查看meta信息 + +exiftool -a -S -G0 xxx.ext + +### extensions + +#### File +FileType: JPEG,JPEG,TIFF +FileTypeExtension: jpg,tif +MIMEType: image/jpeg,image/tiff +#### EXIF +oritentation horizontal(normal) + +[exif tags names](https://exiftool.org/TagNames/EXIF.html) + +## [ImageMagick](https://imagemagick.org/) + +```html +
+    
+
+``` + +### 参考 +- [ImageMagick - Drawing](https://ohmyweekly.github.io/notes/imagemagick-drawing/) + +- [临时1](https://juejin.cn/post/7044561761747337223) + +## GIMP + +### 抠图 + +利用蒙板工具进行抠图的逻辑 + +- 复制原图层,得到mask图层 +- 单色化 + - 颜色 -- 分量 -- 单色混合器 + - 对单色混合器中的红、绿、蓝三色的值,使得模板与背景尽量分离 + - 颜色 -- 反相 +- 增加对比度 + - 对经过反相得到的图像,使用 **画笔** 工具把模板全部描成 **白色** + - 颜色 -- 亮度-对比度 ,进一步提高模板与背景的反差 + - 选中原图层,添加图层蒙板 + - 选择 **白色(全不透明)** + - 把mask图层复制到原图层上 + - 固定图层就应用到mask图层上去了 + - 此时就可以看到应用了mask图层的原图层结果了 +- 描画轮廓 + - 原图层中有两个小图,点击mask,选择 **显示图层蒙板** + - 这样就可以对原图的蒙板进行描画了,描黑就是隐藏,描白就是显现 + diff --git a/cg/tools/modelFile.md b/cg/tools/modelFile.md index 2db43ad..f967e30 100644 --- a/cg/tools/modelFile.md +++ b/cg/tools/modelFile.md @@ -56,6 +56,10 @@ The orientation rule says that the orientation of the facet (i.e. which way is ![](../images/cg/stl-orientation-%20of-the-facet.png) -### [DICOM](https://dicom.nema.org/medical/dicom/final/sup205_ft_DICOM_Encapsulation_of_STL_Models_for_3D_Manufacturing.pdf) +## [DICOM](https://dicom.nema.org/medical/dicom/final/sup205_ft_DICOM_Encapsulation_of_STL_Models_for_3D_Manufacturing.pdf) In 2018, Working Group 17 for the Digital Imaging and Communications in Medicine (DICOM) standard published Supplement 205, DICOM Encapsulation of STL Models for 3D Manufacturing, which allows for the wrapping of a binary STL file in the standard DICOM container used for the communication and management of medical imaging information and related data. The supplement states, "The goal of encapsulating a Stereolithography (STL) 3D manufacturing model file inside a DICOM instance rather than transforming the data into a different representation is to facilitate preservation of the STL file in the exact form that it is used with extant manufacturing devices, while at the same time unambiguously associating it with the patient for whose care the model was created and the images from which the model was derived." + +## [glTF](https://github.com/KhronosGroup/glTF) + +[Header only C++ tiny glTF library(loader/saver)](https://github.com/syoyo/tinygltf) \ No newline at end of file diff --git a/exercises/index.md b/exercises/index.md index 7e60bdd..c02299a 100644 --- a/exercises/index.md +++ b/exercises/index.md @@ -3,12 +3,13 @@ ## 数学 -- [数论](/exercises/number.theory.md) +- [数学](/exercises/math.md) - [小学数学](/exercises/math.primary.md) - [初中数学](/exercises/math.secondary.md) - [高中数学](/exercises/math.high.md) -- [二次方程](/exercises/quadratic.equation.md) - [高等数学](/exercises/advanced.mathematics.md) +- [数论](/exercises/number.theory.md) +- [二次方程](/exercises/quadratic.equation.md) - [夹逼法](/exercises/sequeezing.md) - [几何](/exercises/geometry.md) diff --git a/articles/notes/math.md b/exercises/math.md similarity index 100% rename from articles/notes/math.md rename to exercises/math.md diff --git a/exercises/physics.md b/exercises/physics.md index 71c83ce..28db4a1 100644 --- a/exercises/physics.md +++ b/exercises/physics.md @@ -7,3 +7,15 @@ ## 力学 力学最早的研究可以追溯到古希腊时期,其中产生的最重要的科学家为阿基米德,他是古希腊最伟大的物理学家,其最突出的成就为发现了浮力定律和杠杆原理,并确立了静力学和流体静力学的基本原理,从而享有“力学之父”的美誉,是牛顿之前最伟大的物理学家。 + +古希腊衰落后,物理学的发展陷入停滞,直到16~17世纪的文艺复兴后,物理学才重新发展起来,这一时期研究力学的物理学家主要有伽利略、牛顿等 +- 来自意大利的伽利略是近代自然科学的重要创始人,他在力学方面的主要贡献是对物体运动性质的研究,对物体运动中的一些概念,比如速度、加速度、重力、自由落体、惯性等做了详尽的研究和科学的表达 +- 牛顿则是英国最为伟大的物理学家,他最突出的成就是在1687年的《自然哲学的数学原理》一书中对万有引力定律和三大运动定律进行了系统性的描述,这些定律奠定了现代物理学的基础,成为经典力学的基本观点 + +18世纪之后,由伽利略、牛顿等物理学家发展出来的经典力学侧重于分析速度、位移、加速度等矢量之间的关系,故力学的发展从此进入了分析力学的时代 +- 卡文迪许是继牛顿之后英国最著名的研究引力的物理学家,其最突出的成就是测出了万有引力常数,从而使计算两物体之间所受的引力大小成为可能 +- 哈密顿是来自英国的物理学家, 其中成就最大的还要数力学领域,动力学的方程及求解就是他所列出的,此外他还提出了著名的哈密顿量,使牛顿所创造的经典力学获得了革命性变革,并影响了后世量子力学的产生和发展 +- 达朗贝尔是法国18世纪为牛顿的经典力学体系的发展作出过重要贡献的物理学家,他在《动力学》一书中提出了著名的达朗贝尔原理,它的出现使力学问题的分析简单化,从而为分析力学的创立打下基础 +- 拉格朗日是法国18世纪知名的科学家之一,著名的拉格朗日中值定理就是他创立的,分析力学就是在他的主导下所创立的,因而拉格朗日被誉为“分析力学之父”,有力地推动了分析力学的发展。 + +到了20世纪,经典力学的理论受到了挑战,产生了与之相对立的量子力学 \ No newline at end of file diff --git a/index/standard.md b/index/standard.md index 530f1a4..7d2ba0b 100644 --- a/index/standard.md +++ b/index/standard.md @@ -30,22 +30,13 @@ ## Images -- [图片处理工具-库,程序](../cg/image/tool.md) -- [颜色](../cg/Color.md) -- [图像相关的算法](../cg/image/algorithm.md) -- [图像格式](../others/images.md) +- [图像相关笔记](/cg/image/image.md) +- [图片处理工具-库,程序](/cg/image/tool.md) +- [颜色](/cg/Color.md) +- [图像相关的算法](/cg/image/algorithm.md) - [The DICOM Standard Current Edition](https://www.dicomstandard.org/current) -- [Color Profile](../cg/image/ColorProfile.md) -- [exif tool](../cg/image/exif.md) -- [JPEG](../cg/image//JPEG.md) - - [Image Process](../cg/image/ImageProcessing.md) - [CT](../cg/ct.md) -- [gif](../cg/image/gif.md) -- [tif/tiff](../cg/image/tiff.md) -- [png](../cg/image/png.md) -- [GIMP](../cg/image/gimp.md) - [SVG](../cg/svg.md) -- [ImageMagick](../cg/image/imageMagick.md) ### Tool