rgb
Jet colormap to grayscale
I have a jet colormap: 开发者_运维技巧and I would like to know if there\'s some way to convert to a grayscale. I can\'t use average because maximum and minimum value goes to the same gray color. Or[详细]
2023-04-05 01:48 分类:问答How to pack ARGB to one integer uniquely?
I have four integer values (0 - 255) for an ARGB color map. Now I want to make a unique float or integer of these four integers. Is it possible to do it l开发者_如何学运维ike the following?[详细]
2023-04-03 21:43 分类:问答2 bit per pixel tga's color to qRgb
I need to read tga\'s with pyqt and so far this seems to be working fine except where a tga has 2 bytes per pixel as opposed to 3 or 4. My code is taken from here http://pastebin.com/b5Vz61dZ.[详细]
2023-04-03 03:26 分类:问答Converting RGB Colors to closest ACI Color in C#
I am currently writing a Programm that interacts with dxf files. Therefore I need a Routine that takes RGB Color Values and gives back the closest Color in the AutoCAD Color Index (ACI)[详细]
2023-04-02 07:25 分类:问答How to find a "sufficiently different" RGB?
Provided you are given a color in a form of RGB, is there a way to programmatically determine whether it is sufficiencly different from some other RGB.[详细]
2023-04-01 12:27 分类:问答Create image from RGB data?
I\'m having real trouble with this. I have some raw rgb data, values from 0 to 255, and want to display it as an image开发者_StackOverflow中文版 on the iphone but can\'t find out how to do it. Can any[详细]
2023-04-01 10:11 分类:问答How to pick good contrast RGB colors programmatically?
Suppose, in your program: color A is a color we randomly select Knowing color A, how can I pick a color B that will be in high contrast with color A?[详细]
2023-03-31 21:17 分类:问答rawvideo and rgb32 values passed to FFmpeg
I\'m converting a file to PNG format using this call: ffmpeg.exe -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s <width>x<height> -i infile -f image2 -vcodec png out.png[详细]
2023-03-31 20:11 分类:问答Color is wrong when converting CMYK images to RGB using imagemagick
I had a bunch of images uploaded as cmyk and I needed to convert them to rgb. I used the line exec(\"convert -colorspace RGB \" . $myfile . \" \" . $myfile);[详细]
2023-03-30 20:14 分类:问答Value as colour representation
Converting a value to a colour is well known, I do understand the following two approaches (very well described in changing rgb color values to represent a value)[详细]
2023-03-30 18:46 分类:问答