Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
deeplabv3_migraphx
Commits
7d0097b3
Commit
7d0097b3
authored
Sep 09, 2025
by
shangxl
Browse files
修改Tutorial_Cpp中的括号
parent
b51b1aac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Doc/Tutorial_Cpp.md
Doc/Tutorial_Cpp.md
+2
-4
No files found.
Doc/Tutorial_Cpp.md
View file @
7d0097b3
...
@@ -122,8 +122,7 @@ ErrorCode DeepLabV3::Initialize(InitializationParameterOfSegmentation initParamO
...
@@ -122,8 +122,7 @@ ErrorCode DeepLabV3::Initialize(InitializationParameterOfSegmentation initParamO
本示例代码主要通过opencv实现预处理操作:
本示例代码主要通过opencv实现预处理操作:
```
C++
```
C++
ErrorCode Unet::Segmentation(const cv::Mat &srcImage, cv::Mat &maskImage)
ErrorCode Unet::Segmentation(const cv::Mat &srcImage, cv::Mat &maskImage){
{
...
...
// 图像预处理并转换为NCHW
// 图像预处理并转换为NCHW
...
@@ -199,8 +198,7 @@ ErrorCode DeepLabV3::Segmentation(const cv::Mat &srcImage, cv::Mat &maskImage){
...
@@ -199,8 +198,7 @@ ErrorCode DeepLabV3::Segmentation(const cv::Mat &srcImage, cv::Mat &maskImage){
2.
保存结果,创建一个cv::Mat,根据不同的通道索引在颜色映射表取值并按行依次赋值到Mat对应位置,得到最终的分割图像。
2.
保存结果,创建一个cv::Mat,根据不同的通道索引在颜色映射表取值并按行依次赋值到Mat对应位置,得到最终的分割图像。
```
c++
```
c++
ErrorCode
DeepLabV3
::
Segmentation
(
const
cv
::
Mat
&
srcImage
,
cv
::
Mat
&
maskImage
)
ErrorCode
DeepLabV3
::
Segmentation
(
const
cv
::
Mat
&
srcImage
,
cv
::
Mat
&
maskImage
){
{
...
...
cv
::
Mat
outputImage
(
cv
::
Size
(
W
,
H
),
CV_8UC3
);
cv
::
Mat
outputImage
(
cv
::
Size
(
W
,
H
),
CV_8UC3
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment