gpt4 book ai didi

c++ - 在框架上获得所有不同颜色的最快方法?

转载 作者:行者123 更新时间:2023-11-28 03:20:32 25 4
gpt4 key购买 nike

我们渲染一个没有阴影/灯光/透明度/等的世界 - 纯色顶点。我们有一个 360*360 度的全景鱼眼相机。我们有一个大约 200*200 RGB 像素的分辨率。我们想在给定的框架上获得所有独特的颜色。在 OpenGL 中最快的方法是什么?

最佳答案

看看 GL_EXT_histogram ,这可能是您要查找的内容:

This extension defines pixel operations that count occurences of specific color component values (histogram) and that track the minimum and maximum color component values (minmax). An optional mode allows pixel data to be discarded after the histogram and/or minmax operations are completed. Otherwise the pixel data continue on to the next operation unaffected.

关于c++ - 在框架上获得所有不同颜色的最快方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15581961/

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