Suppose I want to read an indexed image as it is( not the 3 channel 24 bit images) I wish to read and modify the color palette of an indexed image. In opencv I haven't come across any such functions which extract the color palette of an image! Also I would like to know the datatype of the palette. i am coding in c using opencv Any help?
Access the color palette of an indexed image in C
2.9k Views Asked by shiladitya At
2
There are 2 best solutions below
Related Questions in OPENCV
- EnvDTE iterate through subfolders within solution
- C# EnvDTE and TFS massive problems
- Powershell get all filenames associated to a ProjectItem
- Creating VS 2010 IDE instance throwing COM Exception
- Current type of the build action from Visual Studio - Microsoft.VisualStudio.Shell.Interop
- Auto-indent existing file using EnvDTE
- Capture method, class, assembly name from right click inside Visual Studio
- What is EnvDTE.vsCMTypeRef.vsCMTypeRefCodeType for?
- How to get the full filename from ProjectItems?
- System.IServiceProvider.GetService returns not null but cannot cast to specific type
Related Questions in GIF
- EnvDTE iterate through subfolders within solution
- C# EnvDTE and TFS massive problems
- Powershell get all filenames associated to a ProjectItem
- Creating VS 2010 IDE instance throwing COM Exception
- Current type of the build action from Visual Studio - Microsoft.VisualStudio.Shell.Interop
- Auto-indent existing file using EnvDTE
- Capture method, class, assembly name from right click inside Visual Studio
- What is EnvDTE.vsCMTypeRef.vsCMTypeRefCodeType for?
- How to get the full filename from ProjectItems?
- System.IServiceProvider.GetService returns not null but cannot cast to specific type
Related Questions in BMP
- EnvDTE iterate through subfolders within solution
- C# EnvDTE and TFS massive problems
- Powershell get all filenames associated to a ProjectItem
- Creating VS 2010 IDE instance throwing COM Exception
- Current type of the build action from Visual Studio - Microsoft.VisualStudio.Shell.Interop
- Auto-indent existing file using EnvDTE
- Capture method, class, assembly name from right click inside Visual Studio
- What is EnvDTE.vsCMTypeRef.vsCMTypeRefCodeType for?
- How to get the full filename from ProjectItems?
- System.IServiceProvider.GetService returns not null but cannot cast to specific type
Related Questions in COLOR-PALETTE
- EnvDTE iterate through subfolders within solution
- C# EnvDTE and TFS massive problems
- Powershell get all filenames associated to a ProjectItem
- Creating VS 2010 IDE instance throwing COM Exception
- Current type of the build action from Visual Studio - Microsoft.VisualStudio.Shell.Interop
- Auto-indent existing file using EnvDTE
- Capture method, class, assembly name from right click inside Visual Studio
- What is EnvDTE.vsCMTypeRef.vsCMTypeRefCodeType for?
- How to get the full filename from ProjectItems?
- System.IServiceProvider.GetService returns not null but cannot cast to specific type
Related Questions in INDEXED-IMAGE
- EnvDTE iterate through subfolders within solution
- C# EnvDTE and TFS massive problems
- Powershell get all filenames associated to a ProjectItem
- Creating VS 2010 IDE instance throwing COM Exception
- Current type of the build action from Visual Studio - Microsoft.VisualStudio.Shell.Interop
- Auto-indent existing file using EnvDTE
- Capture method, class, assembly name from right click inside Visual Studio
- What is EnvDTE.vsCMTypeRef.vsCMTypeRefCodeType for?
- How to get the full filename from ProjectItems?
- System.IServiceProvider.GetService returns not null but cannot cast to specific type
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Thanks for the image link. First, OpenCV doesn't support GIF (as Ameya005 linked). However there are other indexed palette image formats. It couldn't get an indexed palette image in OpenCV so unless I have missed something, I don't think you are going to be able to work with indexed palettes directly in OpenCV. It sounds like you need an alternative solution. Why do you need to work directly with the indexed palettes?
The second option below though would probably let you have the indexes in OpenCV (the palette would be lost) if that's all you need.
Here is what I've tried:
Load a paletted PNG (gets converted to 3-channel color)
Load a paletted GIF (gets converted to grayscale)
I guess this is converting to grayscale with the index used as intensity, but I haven't verified it.
Create a paletted image from scratch in OpenCV
I haven't found any way to do this.