diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json
index dae9d5e..e746ead 100644
--- a/.obsidian/workspace.json
+++ b/.obsidian/workspace.json
@@ -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",
diff --git a/00. Inbox/想要的鏡頭.md b/00. Inbox/想要的鏡頭.md
index 5e786d7..128e769 100644
--- a/00. Inbox/想要的鏡頭.md
+++ b/00. Inbox/想要的鏡頭.md
@@ -1,29 +1,29 @@
## 變焦
-| | Fujifilm
XF 16-80mm F4 R OIS WR | TAMRON
17-70mm F2.8 DiIII-A VC | Fujifilm
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
[XF 16-80mm F4 R OIS WR](https://fujifilm-x.com/global/products/lenses/xf16-80mmf4-r-ois-wr/) | TAMRON
[17-70mm F2.8 DiIII-A VC](https://www.tamron.com.tw/product/DiIII/B070/index.html) | Fujifilm
[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
AF 27mm F2.8 XF | Fujifilm
XF 33mm F1.4 R LM WR | Sigma
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
[AF 27mm F2.8 XF](https://ttartisan.com/?AF-Lens/157.html) | Fujifilm
[XF 33mm F1.4 R LM WR](https://fujifilm-x.com/global/products/lenses/xf33mmf14-r-lm-wr/) | Sigma
[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) | |
diff --git a/01. 個人/01. Daily/2023-04-16(週日).md b/01. 個人/01. Daily/2023-04-16(週日).md
new file mode 100644
index 0000000..7e87771
--- /dev/null
+++ b/01. 個人/01. Daily/2023-04-16(週日).md
@@ -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的光圈並不值得那超過一半的價差。同樣公司貨,數位達人的報價原廠是29500,Sigma則是11800。
+這價差我多買一顆銘匠都還有剩。對!我也買了[銘匠 27mm f2.8](https://ttartisan.com/?AF-Lens/157.html)。
+
+目前有考慮的鏡頭都列在[[想要的鏡頭]]。
diff --git a/01. 個人/01. Daily/2023-04-17(週一).md b/01. 個人/01. Daily/2023-04-17(週一).md
new file mode 100644
index 0000000..1e39299
--- /dev/null
+++ b/01. 個人/01. Daily/2023-04-17(週一).md
@@ -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]]。
diff --git a/04. Programming/OpenCL.md b/04. Programming/OpenCL.md
index 7c24189..b834030 100644
--- a/04. Programming/OpenCL.md
+++ b/04. Programming/OpenCL.md
@@ -164,9 +164,23 @@ if (err != CL_SUCCESS) {
```
第一個參數是[[OpenCL#6. 建立 kernel]]所建立的kernel。
第二個參數是偏移量,我們假設它在所有維度上都是 0。`cl::NullRange` 對象將滿足該 0 規範。
-**第三個參數是全局大小,它指定希望執行與內核對象K**關聯的內核源代碼中指定的工作項
+第三個參數是**全局大小,它指定希望執行與內核對象K**關聯的內核源代碼中指定的工作項
第四個參數是本地大小,它指定應將多少工作項分組到一個工作組中。
-重點在於第三個參數,因為 GPU 可以平行運算,這裡指定說我們的資料需要幾個
+重點在於第三個參數,因為 GPU 可以平行運算,這裡指定平行運算的數量。
-## 11. 讀回資料
\ No newline at end of file
+## 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。