<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 27/06/2018 16:12, Sankhesh Jhaveri
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEcL5t4Vp=n9UJJys7EH4PgsEFnE-Pr3uK8TTMA57jwLf+6uFw@mail.gmail.com">
      <div dir="ltr">
        <div class="markdown-here-wrapper"
          style="font-family:"Lucida
          Sans",Cantarell,Verdana,sans-serif;color:rgb(11,83,148)">
          <p style="margin:0px 0px 1.2em!important">You should be able
            to get the output of the mapper as vtkImageData and then use
            GetScalarPointer() to access the raw data.</p>
        </div>
      </div>
    </blockquote>
    I have tried to bind the vtkImageData as the InputData of the
    vtkTexture, using:    <br>
                vtkImageActor *saggital;<br>
                .........<br>
                vtkImageData *image_data =
    sagittal->GetMapper()->GetInput();<br>
                 texture->SetInputData(image_data);<br>
    <br>
    but I get the following openGL error:<br>
    <blockquote><i>ERROR: In
        D:\workspace.64\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLTexture.cxx,
        line 224</i><br>
      <i>vtkOpenGLTexture (000001EAAB506E60): 3D texture maps currently
        are not supported!</i><br>
    </blockquote>
    I know that my vtkImageData is a 3D volume data but I hope that
    because the vtkImageActor is just rendering a 2D slice of the volume
    dataset, there was a way of obtaining it.<br>
    <br>
    Thanks in advance,<br>
        Eva<br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CAEcL5t4Vp=n9UJJys7EH4PgsEFnE-Pr3uK8TTMA57jwLf+6uFw@mail.gmail.com">
      <div dir="ltr">
        <div class="markdown-here-wrapper"
          style="font-family:"Lucida
          Sans",Cantarell,Verdana,sans-serif;color:rgb(11,83,148)">
          <div
title="MDH:WW91IHNob3VsZCBiZSBhYmxlIHRvIGdldCB0aGUgb3V0cHV0IG9mIHRoZSBtYXBwZXIgYXMgdnRrSW1hZ2VEYXRhIGFuZCB0aGVuIHVzZSBHZXRTY2FsYXJQb2ludGVyKCkgdG8gYWNjZXNzIHRoZSBy
            YXcgZGF0YS4="
style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Wed, Jun 27, 2018 at 9:49 AM Eva Monclús <<a
            href="mailto:emonclus@cs.upc.edu" moz-do-not-send="true">emonclus@cs.upc.edu</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF">
            <p>Thanks a lot for the quickly answer, but my problem is
              that I want to use the output of the vtkImageActor in a
              different graphic object (another 3D plane) and I do not
              know how to manage it. <br>
            </p>
            <p>In very, very technical words, I want to get access to
              the unsigned char * that it is being rendering using the
              vtkImageActor.</p>
            <p>Thanks in advance,</p>
            <p>    Eva</p>
          </div>
          <div text="#000000" bgcolor="#FFFFFF">
            <p><br>
            </p>
            <br>
            <div class="m_-7534516313208078740moz-cite-prefix">On
              27/06/2018 15:22, Sankhesh Jhaveri wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div class="m_-7534516313208078740markdown-here-wrapper">
                  <p style="margin:0px 0px 1.2em!important">Hi Eva,</p>
                  <p style="margin:0px 0px 1.2em!important"><code style="font-size:0.95em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(218,218,218);background-color:rgb(232,232,232);border-radius:3px;display:inline">vtkImageActor</code>
                    is a 2D textured plane in a 3D space. Make sure that
                    you use the <code style="font-size:0.95em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(218,218,218);background-color:rgb(232,232,232);border-radius:3px;display:inline">vtkImageMapper3D</code>
                    (default mapper) with it.<br>
                    If you’re just looking for 3D interaction with the
                    actor, use an interactor style like <code style="font-size:0.95em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(218,218,218);background-color:rgb(232,232,232);border-radius:3px;display:inline">vtkInteractorStyleTrackballCamera</code>.</p>
                  <p style="margin:0px 0px 1.2em!important">Hope that
                    helps.</p>
                  <p style="margin:0px 0px 1.2em!important">Thanks,<br>
                    Sankhesh</p>
                  <div
title="MDH:SGkgRXZhLDxkaXY+PGJyPjwvZGl2PjxkaXY+YHZ0a0ltYWdlQWN0b3JgIGlzIGEgMkQgdGV4dHVyZWQgcGxhbmUgaW4gYSAzRCBzcGFjZS4gTWFrZSBzdXJlIHRoYXQgeW91IHVzZSB0aGUgYHZ0a0ltYWdlTWFwcGVyM0RgIChkZWZhdWx0IG1hcHBlcikgd2l0aCBpdC48L2Rpdj48ZGl2PklmIHlvdSdy
ZSBqdXN0IGxvb2tpbmcgZm9yIDNEIGludGVyYWN0aW9uIHdpdGggdGhlIGFjdG9yLCB1c2UgYW4g
aW50ZXJhY3RvciBzdHlsZSBsaWtlIGB2dGtJbnRlcmFjdG9yU3R5bGVUcmFja2JhbGxDYW1lcmFg
LjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+SG9wZSB0aGF0IGhlbHBzLjwvZGl2PjxkaXY+PGJy
PjwvZGl2PjxkaXY+VGhhbmtzLDwvZGl2PjxkaXY+U2Fua2hlc2g8L2Rpdj4="
style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div>
                </div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr">On Wed, Jun 27, 2018 at 9:17 AM Eva
                  Monclús <<a href="mailto:emonclus@cs.upc.edu"
                    target="_blank" moz-do-not-send="true">emonclus@cs.upc.edu</a>>
                  wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div text="#000000" bgcolor="#FFFFFF">
                    <p>Hello everyone,</p>
                    <p>I'm working with a volume dataset (temporal Dicom
                      serie) and I´m able to visualize the  slices using
                      the following vtk C++ classes:</p>
                    <ul>
                      <li>vtkImageData: represents the volume dataset</li>
                      <li>vtkImageMapToColors: I use this class to
                        define the transfer function to be used in the
                        rendering</li>
                      <li>vtkImageActor: I use this class to render a
                        specific slice of the volume dataset  <br>
                      </li>
                    </ul>
                    Until here everything it is fine. I can render the
                    slice I want using the classes before mentioned
                    changing the SetDisplayExtent of the vtkImageActor.<br>
                    <br>
                    Now I want to visualize the output of my
                    vtkImageActor as a 2D texture in a free 3D plane. 
                    Then, I consider to have the following classes:<br>
                    <ul>
                      <li> I use a vtkPlaneSource to define the  3D
                        plane: orientation and position</li>
                      <li>a vtkTexture that has to be attached to the
                        vtkPlaneSource. My problem comes out with the
                        definition of the SetInputConnection of the
                        vtkTexture. I want to define the  image as the
                        output of the vtkImageActor. But  I do not get
                        it.</li>
                    </ul>
                    I am successful in visualizing the vtkPlane in
                    black  color (due to the texture is not well
                    defined) unfortunately, I can't get it to work
                    properly  with a texture of a specific slice of the
                    volume dataset. I have tried different ways of
                    assigning the SetInputConnection of the vtkTexture
                    using the vtkImageActor, but none of them worked
                    well.  <br>
                    <br>
                    Any help will be welcome.  Thank you very much in
                    advance,<br>
                    <br>
                       Eva<br>
                    <br>
                    <br>
                    <br>
                  </div>
                  _______________________________________________<br>
                  Powered by <a href="http://www.kitware.com"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">www.kitware.com</a><br>
                  <br>
                  Visit other Kitware open-source projects at <a
                    href="http://www.kitware.com/opensource/opensource.html"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">http://www.kitware.com/opensource/opensource.html</a><br>
                  <br>
                  Please keep messages on-topic and check the VTK FAQ
                  at: <a href="http://www.vtk.org/Wiki/VTK_FAQ"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
                  <br>
                  Search the list archives at: <a
                    href="http://markmail.org/search/?q=vtkusers"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">http://markmail.org/search/?q=vtkusers</a><br>
                  <br>
                  Follow this link to subscribe/unsubscribe:<br>
                  <a
                    href="https://public.kitware.com/mailman/listinfo/vtkusers"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
                </blockquote>
              </div>
              -- <br>
              <div dir="ltr"
                class="m_-7534516313208078740gmail_signature"
                data-smartmail="gmail_signature">
                <div dir="ltr">
                  <div
class="m_-7534516313208078740inbox-inbox-inbox-inbox-inbox-inbox-inbox-markdown-here-wrapper">
                    <h5
id="m_-7534516313208078740inbox-inbox-inbox-inbox-inbox-inbox-inbox-sankhesh-jhaveri"
                      style="margin:1.3em 0px
1em;padding:0px;font-size:1.1em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);font-weight:bold;color:rgb(11,65,148)">Sankhesh
                      Jhaveri</h5>
                    <h6
id="m_-7534516313208078740inbox-inbox-inbox-inbox-inbox-inbox-inbox--sr-research-development-engineer-kitware-http-www-kitware-com-518-881-4417"><em>Sr.
                        Research & Development Engineer</em> | <a
                        href="http://www.kitware.com/" target="_blank"
                        moz-do-not-send="true">Kitware</a> | <a
                        href="tel:%28518%29%20881-4417"
                        value="+15188814417" target="_blank"
                        moz-do-not-send="true">(518) 881-4417</a></h6>
                    <div
title="MDH:PGIgc3R5bGU9ImZvbnQtZmFtaWx5OiB2ZXJkYW5hLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDExLCA4MywgMTQ4KTsiPjxmb250IHNpemU9IjIiPiMjIyMjU2Fua2hlc2ggSmhhdmVyaTwvZm9udD48L2I+PGRpdj48Zm9udCBjb2xvcj0iIzBiNTM5NCIgZmFjZT0idmVyZGFuYSwgc2Fucy1zZXJpZiIg
c2l6ZT0iMiI+PGI+PGJyPjwvYj48L2ZvbnQ+PGRpdj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6
IGFyaWFsLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDExLCA4MywgMTQ4KTsiPjxzcGFuIHN0eWxl
PSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsiPjxpPiMjIyMjIypTci4gUmVzZWFy
Y2ggJmFtcDsgRGV2ZWxvcG1lbnQgRW5naW5lZXIqPC9pPiZuYnNwO3wmbmJzcDs8L3NwYW4+PC9z
cGFuPjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsgY29sb3I6
IHJnYigxMSwgODMsIDE0OCk7Ij48YSBocmVmPSJodHRwOi8vd3d3LmtpdHdhcmUuY29tLyIgdGFy
Z2V0PSJfYmxhbmsiIHN0eWxlPSJjb2xvcjogcmdiKDE3LCA4NSwgMjA0KTsiPktpdHdhcmU8L2E+
Jm5ic3A7fCZuYnNwOzwvc3Bhbj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6IHZlcmRhbmEsIHNh
bnMtc2VyaWY7IGNvbG9yOiByZ2IoMTEsIDgzLCAxNDgpOyI+KDUxOCkgODgxLTQ0MTc8L3NwYW4+
PGJyPjwvZGl2PjxkaXY+PGRpdj48ZGl2PjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFu
YSwgc2Fucy1zZXJpZjsgY29sb3I6IHJnYigxMSwgODMsIDE0OCk7Ij48L3NwYW4+PC9kaXY+PC9k
                      aXY+PC9kaXY+PC9kaXY+"
style="height:0px;width:0px;max-height:0px;max-width:0px;overflow:hidden;font-size:0em;padding:0px;margin:0px">​</div>
                  </div>
                </div>
              </div>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature"
        data-smartmail="gmail_signature">
        <div dir="ltr">
          <div
            class="inbox-inbox-inbox-inbox-inbox-inbox-inbox-markdown-here-wrapper"
            style="font-family:"proza
            libre",sans-serif;color:rgb(0,56,107)">
            <h5
              id="inbox-inbox-inbox-inbox-inbox-inbox-inbox-sankhesh-jhaveri"
              style="margin:1.3em 0px
1em;padding:0px;font-size:1.1em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);font-weight:bold;color:rgb(11,65,148)">Sankhesh
              Jhaveri</h5>
            <h6
id="inbox-inbox-inbox-inbox-inbox-inbox-inbox--sr-research-development-engineer-kitware-http-www-kitware-com-518-881-4417"
              style="margin:1.3em 0px
1em;padding:0px;font-size:1em;color:rgb(11,83,148);font-family:"open
              sans",sans-serif;font-weight:normal"><em>Sr. Research
                & Development Engineer</em> | <a
                href="http://www.kitware.com/" moz-do-not-send="true">Kitware</a>
              | (518) 881-4417</h6>
            <div
title="MDH:PGIgc3R5bGU9ImZvbnQtZmFtaWx5OiB2ZXJkYW5hLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDExLCA4MywgMTQ4KTsiPjxmb250IHNpemU9IjIiPiMjIyMjU2Fua2hlc2ggSmhhdmVyaTwvZm9udD48
L2I+PGRpdj48Zm9udCBjb2xvcj0iIzBiNTM5NCIgZmFjZT0idmVyZGFuYSwgc2Fucy1zZXJpZiIg
c2l6ZT0iMiI+PGI+PGJyPjwvYj48L2ZvbnQ+PGRpdj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6
IGFyaWFsLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDExLCA4MywgMTQ4KTsiPjxzcGFuIHN0eWxl
PSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsiPjxpPiMjIyMjIypTci4gUmVzZWFy
Y2ggJmFtcDsgRGV2ZWxvcG1lbnQgRW5naW5lZXIqPC9pPiZuYnNwO3wmbmJzcDs8L3NwYW4+PC9z
cGFuPjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsgY29sb3I6
IHJnYigxMSwgODMsIDE0OCk7Ij48YSBocmVmPSJodHRwOi8vd3d3LmtpdHdhcmUuY29tLyIgdGFy
Z2V0PSJfYmxhbmsiIHN0eWxlPSJjb2xvcjogcmdiKDE3LCA4NSwgMjA0KTsiPktpdHdhcmU8L2E+
Jm5ic3A7fCZuYnNwOzwvc3Bhbj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6IHZlcmRhbmEsIHNh
bnMtc2VyaWY7IGNvbG9yOiByZ2IoMTEsIDgzLCAxNDgpOyI+KDUxOCkgODgxLTQ0MTc8L3NwYW4+
PGJyPjwvZGl2PjxkaXY+PGRpdj48ZGl2PjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFu
YSwgc2Fucy1zZXJpZjsgY29sb3I6IHJnYigxMSwgODMsIDE0OCk7Ij48L3NwYW4+PC9kaXY+PC9k
              aXY+PC9kaXY+PC9kaXY+"
style="height:0px;width:0px;max-height:0px;max-width:0px;overflow:hidden;font-size:0em;padding:0px;margin:0px">​</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>