<div class="gmail_quote">
<p>Hi,<br><br>I am using vtkPixelBufferObject (version 5.4) to upload data to GPU for processing. After the data is processed (using CUDA), I would like to know how I can display the data directly from GPU. My code looks like this:<br>
<br>vtkRenderWindow *renderWin = vtkRenderWindow::New();<br><br>vtkPixelBufferObject *pbo = vtkPixelBufferObject::New();<br>pbo->SetContext(renderWin);<br><br>//Uploading data to pbo<br>unsigned char *imageData = NULL;<br>
.... // Filling image Data<br>pbo->Upload1D(VTK_UNSIGNED_CHAR, imageData, 1, 1 );<br><br>GLuint pboHandle = pbo->GetHandle();<br><br>// Registering this pbo with CUDA and mapping the buffer for processing<br>....<br>
...<br><br>After processing, I want to render the image directly from the pbo. Any idea, how would I do this?</p>
<p>Or, can I do this using vtkFrameBufferObejct?<br><br>Thanks,<br>Sharmila <br></p></div><br>