Skip to content

Commit 2b79db7

Browse files
committed
optimize
1 parent f2ae066 commit 2b79db7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Frame/Source/Assignment/Assignment2/rasterizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void rst::rasterizer::rasterize_triangle(const Triangle& t) {
179179

180180
// 没有通过测试的子像素依旧应当对颜色与深度产生贡献,
181181
// 按理来说其值应从 frame_buf_ssaax4 与 depth_buf_ssaax4 中获取。
182-
// 鉴于框架本身较为简陋,这里意思到位即可,没有必要魔改框架增加理解难度
182+
// 鉴于框架本身较为简陋,这里意思到位即可。
183183
// finalColor += static_cast<float>(SubPixelCount - activeColor) / static_cast<float>(SubPixelCount) * frame_buf_ssaax2[subIndex];
184184
// finalDepth += static_cast<float>(SubPixelCount - activeDepth) / static_cast<float>(SubPixelCount) * depth_buf_ssaax2[subIndex];
185185

Frame/Source/Assignment/Assignment4/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void bezier(const std::vector<cv::Point2f> &control_points, cv::Mat &window)
8181
int x_index = point.x() + offset[i][j].x();
8282
int y_index = point.y() + offset[i][j].y();
8383

84-
// OpenVC »áʹһ¸öÏñËØµãµÄÖµ mod 255
84+
// OpenCV »áʹһ¸öÏñËØµãµÄÖµ mod 255
8585
uchar color = std::max(static_cast<uchar>(filter[i][j] * 255), window.at<cv::Vec3b>(y_index, x_index)[1]);
8686
window.at<cv::Vec3b>(y_index, x_index)[1] = std::min(static_cast<uchar>(255), color);
8787
}

0 commit comments

Comments
 (0)