Questions tagged [indexed-image]

24 questions
1
vote
1 answer

Converting an indexed image in uint32 to double

I read the following in the documentation of im2double Class Support: Intensity and truecolor images can be uint8, uint16, double, logical, single**, or int16. Indexed images can be uint8, uint16, double or logical. Binary input images must be…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
0
votes
0 answers

I can not solve - A Graphics object cannot be created from an image that has an indexed pixel format error

I am trying this example but I got "Source pixel format is not supported by the filter" error, and to solve it I tried with these answeres but I got titled error, then I tried to solve it with these answers. But I am out of luck and I keep getting…
Rifat
  • 1,700
  • 3
  • 20
  • 51
0
votes
2 answers

How do you output and indexed (black and white) tiff image in opencv

If I imwrite a binarized image, it only creates a grayscale image file not an indexed=2 file. What options do I need on the imwrite to accomplish this? I would also like LZW compression if possible. orig = cv2.imread('rgb.tiff') work =…
shirha
  • 453
  • 3
  • 11
0
votes
0 answers

Colormap doesn't align with indexed image after using rgb2ind

When I run this section of code, figure1 displays the converted image file with the correct color values stored in X. After copying I onto Grid, the colors are wrong. I've figured out that the colormap values are somehow getting shifted up by one…
mossett
  • 1
  • 1
0
votes
1 answer

Adjusting brightness and contrast for indexed images

I am changing the image brightness for an indexed image in MATLAB. For that I created m, a 3x256 ones matrix, then I multiply it with a number, then I add m to x (the map for my image). My question now how to return one if the result is bigger than…
0
votes
1 answer

Convert indexed image colormap to uint8

I'm trying to read colormap of an image using this code: [X, map] = imread('D:\Eye.png'); But map is rescaled to [0,1] type double. How can I get the colormap in uint8 range [0,255]?
M.Sarabi
  • 51
  • 1
  • 9
0
votes
0 answers

Reduce the colors in an image when we already have the palette, using OpenCV

Having an image I want to reduce it to x colors and save it in a png file. I choose to do this using k-means (which is already available in OpenCV). On a full resolution image it takes more then a minute so I resize the image to something much…
Adi
  • 321
  • 1
  • 17
0
votes
1 answer

Convert and indexed image to RGB and back without losing data

I am having trouble converting an indexed image to RGB and then back from RGB to an indexed image. For some reason, the result is different from the original. I am doing steganography so it can't work if the data is changed. This is my code and…
Fitri
  • 47
  • 1
  • 7
0
votes
0 answers

save indexed images in MATLAB

I have this image which with point curse it shows X ,Y index RGB the index values are important for me and I want to save this image and use it later. but when I am using imwrite(im, 'importantIm.png' , 'png') the created image does not have index…
user1331843
  • 123
  • 1
  • 6
  • 15
1
2