<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear all,<br><br></div>I read an RGB image with ScCV imread:<br><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">img</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">imread</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">path_to_image</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,0)">CV_LOAD_IMAGE_COLOR</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;<br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">The result is an image of type:  CV_8UC3</span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">I can display the image pixel values with: disp(img)<br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">The image itself is of type: Mat (Mlist)<br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">So far, so clear.<br><br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">Now, I want to extract a single plane..lets say the R-plane<br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">I would normally do something like this:<br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">R = img( : , : , 1)<br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">But for some reason it does not work.<br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">It seems that one can only extract pixel values from all 3 planes altogether.....If so, why?<br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">So the question comes down to:   How to extract/change a single pixel value of a single plane in SciCV ?<br><br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">Thank you,<br></span></pre><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">Philipp<br></span></pre></div></div></div>