C# OpenCV VideoWriter saves in unexpected colorsHow do I calculate someone's age in C#?Calculate relative time in C#What is the difference between String and string in C#?Hidden Features of C#?Calling the base constructor in C#Cast int to enum in C#How do you give a C# Auto-Property a default value?How do I enumerate an enum in C#?What are the correct version numbers for C#?How do I get a consistent byte representation of strings in C# without manually specifying an encoding?
Look mom! I made my own (Base 10) numeral system!
Why are the inside diameters of some pipe larger than the stated size?
Ex-contractor published company source code and secrets online
In Pokémon Go, why does one of my Pikachu have an option to evolve, but another one doesn't?
Is it true that control+alt+delete only became a thing because IBM would not build Bill Gates a computer with a task manager button?
Non-OR journals which regularly publish OR research
Why should public servants be apolitical?
What is the flow of execution of UI COMPONENT in Magento 2?
Does two puncture wounds mean venomous snake?
Does a code snippet compile? Or does it gets compiled?
Plausibility of Ice Eaters in the Arctic
As a 16 year old, how can I keep my money safe from my mother?
How to display a duet in lyrics?
Can a PC attack themselves with an unarmed strike?
Can we use other things than single-word verbs in our dialog tags?
Do other countries guarantee freedoms that the United States does not have?
Decode a variable-length quantity
Double blind peer review when paper cites author's GitHub repo for code
How quickly could a country build a tall concrete wall around a city?
Does this smartphone photo show Mars just below the Sun?
Where to pee in London?
Is the evolution operator well-defined mathematically?
During the Space Shuttle Columbia Disaster of 2003, Why Did The Flight Director Say, "Lock the doors."?
How do we avoid CI-driven development...?
C# OpenCV VideoWriter saves in unexpected colors
How do I calculate someone's age in C#?Calculate relative time in C#What is the difference between String and string in C#?Hidden Features of C#?Calling the base constructor in C#Cast int to enum in C#How do you give a C# Auto-Property a default value?How do I enumerate an enum in C#?What are the correct version numbers for C#?How do I get a consistent byte representation of strings in C# without manually specifying an encoding?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am using Intel Realsense RGB camera to show live stream on WPF window as well as save the stream into a file. What I am showing on window has correct colors but when I save it, the video colors are off (more purple). Please see screenshot: https://ibb.co/txy9Sgd
I am using a EmguCV video writer to save the video. I don't have much knowledge about formats. I am guessing I am doing something wrong with Format24bppRgb format?
private Pipeline pipeline = new Pipeline(); // Create and config the pipeline to strem color and depth frames.
private CancellationTokenSource tokenSource;
private VideoWriter writer = null;
public StartTests()
InitializeComponent();
private void Window_Loaded(object sender, RoutedEventArgs e)
tokenSource = new CancellationTokenSource();
int fcc = VideoWriter.Fourcc('M', 'P', '4', 'V'); //'M', 'J', 'P', 'G'
float fps = 15F;
writer = new VideoWriter("testttt.mp4", fcc, fps, new System.Drawing.Size(640, 480), true);
Config cfg = new Config();
cfg.EnableStream(Stream.Color, 640, 480, format: Format.Rgb8);
PipelineProfile pp = pipeline.Start(cfg);
StartRenderFrames(pp);
private void StartRenderFrames(PipelineProfile pp)
// Allocate bitmaps for rendring. Since the sample aligns the depth frames to the color frames, both of the images will have the color resolution
using (VideoStreamProfile p = pp.GetStream(Stream.Color) as VideoStreamProfile)
imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null);
Action<VideoFrame> updateColor = UpdateImage(imgColor);
Task.Factory.StartNew(() =>
while (!tokenSource.Token.IsCancellationRequested)
using (FrameSet frames = pipeline.WaitForFrames()) // Wait for the next available FrameSet
VideoFrame colorFrame = frames.ColorFrame.DisposeWith(frames);
// Save frames to file here...
System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data);
Image<Bgr, Byte> imageCV = new Image<Bgr, byte>(ColorImg); //Image Class from Emgu.CV
Mat matFrame = imageCV.Mat;
writer.Write(matFrame);
// Render to WPF window here...
Dispatcher.Invoke(DispatcherPriority.Render, updateColor, colorFrame);
, tokenSource.Token);
static Action<VideoFrame> UpdateImage(Image img)
WriteableBitmap wbmp = img.Source as WriteableBitmap;
return new Action<VideoFrame>(frame =>
using (frame)
var rect = new Int32Rect(0, 0, frame.Width, frame.Height);
wbmp.WritePixels(rect, frame.Data, frame.Stride * frame.Height, frame.Stride);
);
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
tokenSource.Cancel();
tokenSource.Dispose();
pipeline.Stop();
writer.Dispose();
tokenSource = new CancellationTokenSource();
I want to see consistent colors in the saved .mp4 file but I am seeing weird colors.
Note - My code is based on this example: https://github.com/IntelRealSense/librealsense/blob/master/wrappers/csharp/cs-tutorial-2-capture/Window.xaml.cs
c# wpf emgucv writeablebitmap realsense
add a comment |
I am using Intel Realsense RGB camera to show live stream on WPF window as well as save the stream into a file. What I am showing on window has correct colors but when I save it, the video colors are off (more purple). Please see screenshot: https://ibb.co/txy9Sgd
I am using a EmguCV video writer to save the video. I don't have much knowledge about formats. I am guessing I am doing something wrong with Format24bppRgb format?
private Pipeline pipeline = new Pipeline(); // Create and config the pipeline to strem color and depth frames.
private CancellationTokenSource tokenSource;
private VideoWriter writer = null;
public StartTests()
InitializeComponent();
private void Window_Loaded(object sender, RoutedEventArgs e)
tokenSource = new CancellationTokenSource();
int fcc = VideoWriter.Fourcc('M', 'P', '4', 'V'); //'M', 'J', 'P', 'G'
float fps = 15F;
writer = new VideoWriter("testttt.mp4", fcc, fps, new System.Drawing.Size(640, 480), true);
Config cfg = new Config();
cfg.EnableStream(Stream.Color, 640, 480, format: Format.Rgb8);
PipelineProfile pp = pipeline.Start(cfg);
StartRenderFrames(pp);
private void StartRenderFrames(PipelineProfile pp)
// Allocate bitmaps for rendring. Since the sample aligns the depth frames to the color frames, both of the images will have the color resolution
using (VideoStreamProfile p = pp.GetStream(Stream.Color) as VideoStreamProfile)
imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null);
Action<VideoFrame> updateColor = UpdateImage(imgColor);
Task.Factory.StartNew(() =>
while (!tokenSource.Token.IsCancellationRequested)
using (FrameSet frames = pipeline.WaitForFrames()) // Wait for the next available FrameSet
VideoFrame colorFrame = frames.ColorFrame.DisposeWith(frames);
// Save frames to file here...
System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data);
Image<Bgr, Byte> imageCV = new Image<Bgr, byte>(ColorImg); //Image Class from Emgu.CV
Mat matFrame = imageCV.Mat;
writer.Write(matFrame);
// Render to WPF window here...
Dispatcher.Invoke(DispatcherPriority.Render, updateColor, colorFrame);
, tokenSource.Token);
static Action<VideoFrame> UpdateImage(Image img)
WriteableBitmap wbmp = img.Source as WriteableBitmap;
return new Action<VideoFrame>(frame =>
using (frame)
var rect = new Int32Rect(0, 0, frame.Width, frame.Height);
wbmp.WritePixels(rect, frame.Data, frame.Stride * frame.Height, frame.Stride);
);
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
tokenSource.Cancel();
tokenSource.Dispose();
pipeline.Stop();
writer.Dispose();
tokenSource = new CancellationTokenSource();
I want to see consistent colors in the saved .mp4 file but I am seeing weird colors.
Note - My code is based on this example: https://github.com/IntelRealSense/librealsense/blob/master/wrappers/csharp/cs-tutorial-2-capture/Window.xaml.cs
c# wpf emgucv writeablebitmap realsense
add a comment |
I am using Intel Realsense RGB camera to show live stream on WPF window as well as save the stream into a file. What I am showing on window has correct colors but when I save it, the video colors are off (more purple). Please see screenshot: https://ibb.co/txy9Sgd
I am using a EmguCV video writer to save the video. I don't have much knowledge about formats. I am guessing I am doing something wrong with Format24bppRgb format?
private Pipeline pipeline = new Pipeline(); // Create and config the pipeline to strem color and depth frames.
private CancellationTokenSource tokenSource;
private VideoWriter writer = null;
public StartTests()
InitializeComponent();
private void Window_Loaded(object sender, RoutedEventArgs e)
tokenSource = new CancellationTokenSource();
int fcc = VideoWriter.Fourcc('M', 'P', '4', 'V'); //'M', 'J', 'P', 'G'
float fps = 15F;
writer = new VideoWriter("testttt.mp4", fcc, fps, new System.Drawing.Size(640, 480), true);
Config cfg = new Config();
cfg.EnableStream(Stream.Color, 640, 480, format: Format.Rgb8);
PipelineProfile pp = pipeline.Start(cfg);
StartRenderFrames(pp);
private void StartRenderFrames(PipelineProfile pp)
// Allocate bitmaps for rendring. Since the sample aligns the depth frames to the color frames, both of the images will have the color resolution
using (VideoStreamProfile p = pp.GetStream(Stream.Color) as VideoStreamProfile)
imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null);
Action<VideoFrame> updateColor = UpdateImage(imgColor);
Task.Factory.StartNew(() =>
while (!tokenSource.Token.IsCancellationRequested)
using (FrameSet frames = pipeline.WaitForFrames()) // Wait for the next available FrameSet
VideoFrame colorFrame = frames.ColorFrame.DisposeWith(frames);
// Save frames to file here...
System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data);
Image<Bgr, Byte> imageCV = new Image<Bgr, byte>(ColorImg); //Image Class from Emgu.CV
Mat matFrame = imageCV.Mat;
writer.Write(matFrame);
// Render to WPF window here...
Dispatcher.Invoke(DispatcherPriority.Render, updateColor, colorFrame);
, tokenSource.Token);
static Action<VideoFrame> UpdateImage(Image img)
WriteableBitmap wbmp = img.Source as WriteableBitmap;
return new Action<VideoFrame>(frame =>
using (frame)
var rect = new Int32Rect(0, 0, frame.Width, frame.Height);
wbmp.WritePixels(rect, frame.Data, frame.Stride * frame.Height, frame.Stride);
);
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
tokenSource.Cancel();
tokenSource.Dispose();
pipeline.Stop();
writer.Dispose();
tokenSource = new CancellationTokenSource();
I want to see consistent colors in the saved .mp4 file but I am seeing weird colors.
Note - My code is based on this example: https://github.com/IntelRealSense/librealsense/blob/master/wrappers/csharp/cs-tutorial-2-capture/Window.xaml.cs
c# wpf emgucv writeablebitmap realsense
I am using Intel Realsense RGB camera to show live stream on WPF window as well as save the stream into a file. What I am showing on window has correct colors but when I save it, the video colors are off (more purple). Please see screenshot: https://ibb.co/txy9Sgd
I am using a EmguCV video writer to save the video. I don't have much knowledge about formats. I am guessing I am doing something wrong with Format24bppRgb format?
private Pipeline pipeline = new Pipeline(); // Create and config the pipeline to strem color and depth frames.
private CancellationTokenSource tokenSource;
private VideoWriter writer = null;
public StartTests()
InitializeComponent();
private void Window_Loaded(object sender, RoutedEventArgs e)
tokenSource = new CancellationTokenSource();
int fcc = VideoWriter.Fourcc('M', 'P', '4', 'V'); //'M', 'J', 'P', 'G'
float fps = 15F;
writer = new VideoWriter("testttt.mp4", fcc, fps, new System.Drawing.Size(640, 480), true);
Config cfg = new Config();
cfg.EnableStream(Stream.Color, 640, 480, format: Format.Rgb8);
PipelineProfile pp = pipeline.Start(cfg);
StartRenderFrames(pp);
private void StartRenderFrames(PipelineProfile pp)
// Allocate bitmaps for rendring. Since the sample aligns the depth frames to the color frames, both of the images will have the color resolution
using (VideoStreamProfile p = pp.GetStream(Stream.Color) as VideoStreamProfile)
imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null);
Action<VideoFrame> updateColor = UpdateImage(imgColor);
Task.Factory.StartNew(() =>
while (!tokenSource.Token.IsCancellationRequested)
using (FrameSet frames = pipeline.WaitForFrames()) // Wait for the next available FrameSet
VideoFrame colorFrame = frames.ColorFrame.DisposeWith(frames);
// Save frames to file here...
System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data);
Image<Bgr, Byte> imageCV = new Image<Bgr, byte>(ColorImg); //Image Class from Emgu.CV
Mat matFrame = imageCV.Mat;
writer.Write(matFrame);
// Render to WPF window here...
Dispatcher.Invoke(DispatcherPriority.Render, updateColor, colorFrame);
, tokenSource.Token);
static Action<VideoFrame> UpdateImage(Image img)
WriteableBitmap wbmp = img.Source as WriteableBitmap;
return new Action<VideoFrame>(frame =>
using (frame)
var rect = new Int32Rect(0, 0, frame.Width, frame.Height);
wbmp.WritePixels(rect, frame.Data, frame.Stride * frame.Height, frame.Stride);
);
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
tokenSource.Cancel();
tokenSource.Dispose();
pipeline.Stop();
writer.Dispose();
tokenSource = new CancellationTokenSource();
I want to see consistent colors in the saved .mp4 file but I am seeing weird colors.
Note - My code is based on this example: https://github.com/IntelRealSense/librealsense/blob/master/wrappers/csharp/cs-tutorial-2-capture/Window.xaml.cs
c# wpf emgucv writeablebitmap realsense
c# wpf emgucv writeablebitmap realsense
edited Mar 27 at 18:53
golu
asked Mar 27 at 6:45
golugolu
1012 silver badges10 bronze badges
1012 silver badges10 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
OpenCV assumes BGR colour format, so if you change the RealSense stream format to Format.Bgra8 and the WriteableBitmap format to PixelFormats.Bgr24, you should be alright.
So you should have:
cfg.EnableStream(Stream.Color, 640, 480, format: Format.Bgr8);
and
new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Bgr24, null);
I don't think you'll need to change the System.Drawing.Bitmap pixelformat as you're only using it to feed the OpenCV mat.
I tried to look for these formats you mentioned but they are not available in the options. You mean to change these locations? ``` imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null); System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data); ```
– golu
Mar 27 at 15:41
I've edited my answer to add more detail.
– jb455
Mar 28 at 11:20
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55371293%2fc-sharp-opencv-videowriter-saves-in-unexpected-colors%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
OpenCV assumes BGR colour format, so if you change the RealSense stream format to Format.Bgra8 and the WriteableBitmap format to PixelFormats.Bgr24, you should be alright.
So you should have:
cfg.EnableStream(Stream.Color, 640, 480, format: Format.Bgr8);
and
new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Bgr24, null);
I don't think you'll need to change the System.Drawing.Bitmap pixelformat as you're only using it to feed the OpenCV mat.
I tried to look for these formats you mentioned but they are not available in the options. You mean to change these locations? ``` imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null); System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data); ```
– golu
Mar 27 at 15:41
I've edited my answer to add more detail.
– jb455
Mar 28 at 11:20
add a comment |
OpenCV assumes BGR colour format, so if you change the RealSense stream format to Format.Bgra8 and the WriteableBitmap format to PixelFormats.Bgr24, you should be alright.
So you should have:
cfg.EnableStream(Stream.Color, 640, 480, format: Format.Bgr8);
and
new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Bgr24, null);
I don't think you'll need to change the System.Drawing.Bitmap pixelformat as you're only using it to feed the OpenCV mat.
I tried to look for these formats you mentioned but they are not available in the options. You mean to change these locations? ``` imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null); System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data); ```
– golu
Mar 27 at 15:41
I've edited my answer to add more detail.
– jb455
Mar 28 at 11:20
add a comment |
OpenCV assumes BGR colour format, so if you change the RealSense stream format to Format.Bgra8 and the WriteableBitmap format to PixelFormats.Bgr24, you should be alright.
So you should have:
cfg.EnableStream(Stream.Color, 640, 480, format: Format.Bgr8);
and
new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Bgr24, null);
I don't think you'll need to change the System.Drawing.Bitmap pixelformat as you're only using it to feed the OpenCV mat.
OpenCV assumes BGR colour format, so if you change the RealSense stream format to Format.Bgra8 and the WriteableBitmap format to PixelFormats.Bgr24, you should be alright.
So you should have:
cfg.EnableStream(Stream.Color, 640, 480, format: Format.Bgr8);
and
new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Bgr24, null);
I don't think you'll need to change the System.Drawing.Bitmap pixelformat as you're only using it to feed the OpenCV mat.
edited Mar 28 at 11:10
answered Mar 27 at 9:48
jb455jb455
531 silver badge6 bronze badges
531 silver badge6 bronze badges
I tried to look for these formats you mentioned but they are not available in the options. You mean to change these locations? ``` imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null); System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data); ```
– golu
Mar 27 at 15:41
I've edited my answer to add more detail.
– jb455
Mar 28 at 11:20
add a comment |
I tried to look for these formats you mentioned but they are not available in the options. You mean to change these locations? ``` imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null); System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data); ```
– golu
Mar 27 at 15:41
I've edited my answer to add more detail.
– jb455
Mar 28 at 11:20
I tried to look for these formats you mentioned but they are not available in the options. You mean to change these locations? ``` imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null); System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data); ```
– golu
Mar 27 at 15:41
I tried to look for these formats you mentioned but they are not available in the options. You mean to change these locations? ``` imgColor.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null); System.Drawing.Bitmap ColorImg = new System.Drawing.Bitmap(colorFrame.Width, colorFrame.Height, colorFrame.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, colorFrame.Data); ```
– golu
Mar 27 at 15:41
I've edited my answer to add more detail.
– jb455
Mar 28 at 11:20
I've edited my answer to add more detail.
– jb455
Mar 28 at 11:20
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55371293%2fc-sharp-opencv-videowriter-saves-in-unexpected-colors%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown