vault backup: 2023-04-17 21:15:05

This commit is contained in:
2023-04-17 21:15:05 +08:00
parent 3c7c09b1c3
commit f0682b7f59
5 changed files with 129 additions and 54 deletions

View File

@@ -41,19 +41,7 @@
"state": {
"type": "markdown",
"state": {
"file": "03. 專注Study/C++/C++20.md",
"mode": "source",
"source": true
}
}
},
{
"id": "bedfb1c3a1e0e733",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "03. 專注Study/C++/chrono.md",
"file": "01. 個人/01. Daily/2023-04-17(週一).md",
"mode": "source",
"source": true
}
@@ -65,14 +53,14 @@
"state": {
"type": "markdown",
"state": {
"file": "04. Programming/OpenCL.md",
"mode": "source",
"file": "00. Inbox/想要的鏡頭.md",
"mode": "preview",
"source": true
}
}
}
],
"currentTab": 4
"currentTab": 2
}
],
"direction": "vertical"
@@ -130,7 +118,7 @@
"state": {
"type": "backlink",
"state": {
"file": "04. Programming/OpenCL.md",
"file": "01. 個人/01. Daily/2023-04-17(週一).md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@@ -155,7 +143,7 @@
"state": {
"type": "outline",
"state": {
"file": "04. Programming/OpenCL.md"
"file": "01. 個人/01. Daily/2023-04-17(週一).md"
}
}
},
@@ -168,7 +156,7 @@
}
}
],
"currentTab": 1
"currentTab": 3
},
{
"id": "ae4bf98badbfc7ee",
@@ -206,18 +194,21 @@
"periodic-notes:Open today": false
}
},
"active": "de9326d812f04a36",
"active": "90e723ca7b21bf9e",
"lastOpenFiles": [
"01. 個人/01. Daily/2023-04-16(週日).md",
"01. 個人/01. Daily/2023-04-17(週一).md",
"00. Inbox/想要的鏡頭.md",
"03. 專注Study/C++/C++20.md",
"03. 專注Study/C++/chrono.md",
"04. Programming/OpenCL.md",
"03. 專注Study/C++/C++20.md",
"04. Programming/OpenGL.md",
"04. Programming/OpenCV API.md",
"04. Programming/OpenCV.md",
"03. 專注Study/C++/C++17.md",
"04. Programming/QT/timer.md",
"00. Inbox/01. TODO.md",
"00. Inbox/想要的鏡頭.md",
"05. 資料收集/Capture One.md",
"04. Programming/OpenCV API.md",
"04. Programming/OpenCV.md",
"05. 資料收集/向右曝光.md",
"05. 資料收集/Color Format.md",
"00. Inbox/00. Inbox.md",
@@ -235,9 +226,6 @@
"01. 個人/01. Daily/2023/03/2023-03-08(週三).md",
"05. 資料收集/AI.md",
"04. Programming/Python/subprocess.md",
"02. 工作/01. Logitech/QA Sustaining Automation.md",
"02. 工作/01. Logitech/Bolide.md",
"02. 工作/01. Logitech/AutoStation.md",
"attachments/android_mediacodec_life_cycle.png",
"attachments/android_mediacodec_flow.png",
"attachments/Pasted image 20230308105856.png",

View File

@@ -1,29 +1,29 @@
## 變焦
| | Fujifilm<br>XF 16-80mm F4 R OIS WR | TAMRON<br>17-70mm F2.8 DiIII-A VC | Fujifilm<br>XF 18-120mm F4 LM PZ WR |
|:------------------:|:----------------------------------:|:----------------------------------------------------------------------:|:---------------------------------------------------------------------:|
| Length | 89mm | 119mm | 124mm |
| Diameter | 78mm | 75mm | 77mm |
| Weight | 440g | 525g | 460g |
| Min Focus Distance | 0.35m | 0.39m | 0.6m |
| Max Magnification | 0.25x | 0.2x | 0.2x |
| Filter Thread | 72mm | 67mm | 72mm |
| Weather-sealed | YES | NO | NO |
| OIS | YES | YES | NO |
| Bought | YES | | |
| Store | | [easyps NT.21500](https://www.easyps.com.tw/product.php?m=&s=&id=6983) | [easyps NT.26000](https://www.easyps.com.tw/product.php?m=&s=&id=650) |
| | Fujifilm<br>[XF 16-80mm F4 R OIS WR](https://fujifilm-x.com/global/products/lenses/xf16-80mmf4-r-ois-wr/) | TAMRON<br>[17-70mm F2.8 DiIII-A VC](https://www.tamron.com.tw/product/DiIII/B070/index.html) | Fujifilm<br>[XF 18-120mm F4 LM PZ WR](https://fujifilm-x.com/global/products/lenses/xf18-120mmf4-lm-pz-wr/) |
|:------------------:|:---------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------:|
| Length | 89mm | 119mm | 124mm |
| Diameter | 78mm | 75mm | 77mm |
| Weight | 440g | 525g | 460g |
| Min Focus Distance | 0.35m | 0.39m | 0.6m |
| Max Magnification | 0.25x | 0.2x | 0.2x |
| Filter Thread | 72mm | 67mm | 72mm |
| Weather-sealed | YES | NO | NO |
| OIS | YES | YES | NO |
| Bought | YES | | |
| Store | | [easyps NT.21500](https://www.easyps.com.tw/product.php?m=&s=&id=6983) | [easyps NT.26000](https://www.easyps.com.tw/product.php?m=&s=&id=650) |
## 定焦
| | TTArtisan<br>AF 27mm F2.8 XF | Fujifilm<br>XF 33mm F1.4 R LM WR | Sigma<br>56mm F1.4 DC DN |
|:------------------:|:-------------------------------------------------------------------------------------:|:----------------------------------------------------------------------:|:------------------------:|
| Length | | 74mm | 60mm |
| Diameter | | 67mm | 67mm |
| Weight | 93g | 360g | 280g |
| Min Focus Distance | 0.35m | 0.3m | 0.5m |
| Max Magnification | | 0.15x | 0.14x |
| Filter Thread | 39mm | 58mm | 55mm |
| Weather-sealed | NO | YES | YES |
| OIS | NO | NO | NO |
| Bought | YES | | YES |
| Store | [easyps NT.3380](https://www.easyps.com.tw/product.php?m=133&s=0&t=0&id=9331&view=pc) | [easyps NT.23300](https://www.easyps.com.tw/product.php?m=&s=&id=3325) | |
| | TTArtisan<br>[AF 27mm F2.8 XF](https://ttartisan.com/?AF-Lens/157.html) | Fujifilm<br>[XF 33mm F1.4 R LM WR](https://fujifilm-x.com/global/products/lenses/xf33mmf14-r-lm-wr/) | Sigma<br>[56mm F1.4 DC DN]((https://www.sigma.net.tw/lens/dn/56_14/index.html)) |
|:------------------:|:-------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------:|
| Length | | 74mm | 60mm |
| Diameter | | 67mm | 67mm |
| Weight | 93g | 360g | 280g |
| Min Focus Distance | 0.35m | 0.3m | 0.5m |
| Max Magnification | | 0.15x | 0.14x |
| Filter Thread | 39mm | 58mm | 55mm |
| Weather-sealed | NO | YES | YES |
| OIS | NO | NO | NO |
| Bought | YES | | YES |
| Store | [easyps NT.3380](https://www.easyps.com.tw/product.php?m=133&s=0&t=0&id=9331&view=pc) | [easyps NT.23300](https://www.easyps.com.tw/product.php?m=&s=&id=3325) | |

View File

@@ -0,0 +1,40 @@
---
tags:
aliases:
date: 2023-04-17
time: 20:55:20
description:
listenSummit: 0
anki: 0
readingSkill: 0
readingCasual: 0
深蹲: 60
啞鈴: 46
仰臥起坐: 0
---
時間20:55:20
### TAG
---
### 新增TODO
#### 私事
#### 公事
---
### 今日回顧
睿睿的曙光考上了,算是放下了心中的一個重擔。另一個放不下心的是老婆的肝。
看了好幾個禮拜之後,決定不買富士原廠的[XF56mmF1.2 R WR](https://www.fujifilm.com.tw/personal/digitalcamera/xf56mmf12-r-wr/),決定買入[Sigma 56mm F1.4 DC DN C](https://www.sigma.net.tw/lens/dn/56_14/index.html)。
雖然原廠的銳利度與光圈都比較優秀但以我的使用情形與極端條件來看綜合考量下來優秀的程度與那相差f0.2的光圈並不值得那超過一半的價差。同樣公司貨數位達人的報價原廠是29500Sigma則是11800。
這價差我多買一顆銘匠都還有剩。對!我也買了[銘匠 27mm f2.8](https://ttartisan.com/?AF-Lens/157.html)。
目前有考慮的鏡頭都列在[[想要的鏡頭]]。

View File

@@ -0,0 +1,33 @@
---
tags:
aliases:
date: 2023-04-17
time: 21:09:50
description:
listenSummit: 0
anki: 0
readingSkill: 0
readingCasual: 0
深蹲: 0
啞鈴: 0
仰臥起坐: 0
---
時間21:09:50
### TAG
---
### 新增TODO
#### 私事
#### 公事
---
### 今日回顧
今天學會了怎麼用OpenCL來取代CPU code詳細寫在[[OpenCL]]。

View File

@@ -164,9 +164,23 @@ if (err != CL_SUCCESS) {
```
第一個參數是[[OpenCL#6. 建立 kernel]]所建立的kernel。
第二個參數是偏移量,我們假設它在所有維度上都是 0。`cl::NullRange` 對象將滿足該 0 規範。
**第三個參數是全局大小它指定希望執行與內核對象K**關聯的內核源代碼中指定的工作項
第三個參數是**全局大小它指定希望執行與內核對象K**關聯的內核源代碼中指定的工作項
第四個參數是本地大小,它指定應將多少工作項分組到一個工作組中。
重點在於第三個參數,因為 GPU 可以平行運算,這裡指定說我們的資料需要幾個
重點在於第三個參數,因為 GPU 可以平行運算,這裡指定平行運算的數量。
## 11. 讀回資料
## 11. 讀回資料
```cpp
grayHistogram.resize(sizeof(uint32_t) * 256);
err = queue.enqueueReadBuffer(clGrayHistogram, CL_TRUE, 0, 256 * sizeof(uint32_t), grayHistogram.data());
if (err != CL_SUCCESS) {
printf("OpenCL read clGrayHistogram error.\n");
}
```
第一行的 `grayHistogram` 是讀回 CPU 的記憶體。
[`enqueueReadBuffer`](https://registry.khronos.org/OpenCL/sdk/1.2/docs/man/xhtml/clEnqueueReadBuffer.html)的參數解釋:
第一個參數就是[[OpenCL#8. 建立 `cl::Buffer`]]所建立的其中一個 buffer。
第二個參數指定是否 **blocking_read**
第三個參數是 `cl::Buffer` 的偏移量。
第四個參數要讀取的長度。
第五個參數是要寫入的 memory address。