gpt4 book ai didi

c++ - 是什么让这种图像处理变得有用 [加速的 C++]

转载 作者:太空狗 更新时间:2023-10-29 21:44:05 26 4
gpt4 key购买 nike

<分区>

我正在学习 Accelerated C++ 并且问题 5-5 问:

5-5. Write a function named center(const vector<string>&) that returns a picture in which all the lines of the original picture are padded out to their full width, and the padding is as evenly divided as possible between the left and right sides of the picture. What are the properties of pictures for which such a function is useful? How can you tell whether a given picture has those properties?

这是函数输入和输出的图像: http://i1296.photobucket.com/albums/ag7/David_Jhoo/Untitled_zps9f0e32b4.png

我很困惑为什么这会有用。起初我在考虑图像压缩,为了反函数,但我们必须为此缩小正方形。我觉得这只会让任何真实图像看起来很奇怪。有什么想法吗?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com