<div dir="ltr">Hello,<div><br></div><div>Thanks! I've tried again and I finally got the right binaries and native libraries for Java.</div><div><br></div><div>About the conversion from Java BufferedImage, there is any way to import a Java Image to SimpleITK? I'm working with binary images, so could I convert my images in a binary matrix or array, and so convert it into a SimpleITK Image? I've seen that in Matlab exists a <span style="color:rgb(51,51,51);font-size:13px;line-height:20px;white-space:pre-wrap;background-color:initial">GetImageFromArray method, using a specific numpy array, but I didn't find something like this for Java. </span></div><div><span style="color:rgb(51,51,51);font-size:13px;line-height:20px;white-space:pre-wrap;background-color:initial"><br></span></div><div><span style="color:rgb(51,51,51);font-size:13px;line-height:20px;white-space:pre-wrap;background-color:initial">Thanks</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-03 15:22 GMT-03:00 Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello,<div><br></div><div>The default configuration build ITK and SimpleITK as static libraries, and then the SWIG layer generates a shared libraries with the other libraries statically linked. This produces a smaller and more efficient runtime library which in most cases is preferred during run time, and has a simpler installation. This is at the trade off of requiring more system resources when building/linking. I would recommend utilizing a system with the required resources when building.</div><div><br></div><div>Alternatively, you can enable shared libraries in the CMake configuration. This will build ITK, and the SimpleITK core as shared libraries, are greatly reduce the requirements to link.</div><div><br></div><div>While the SimpleITK/SWIG interface could provide a native buffer interface the way that it's done in Python and C#, no one has implemented it yet. Contributions are very much welcomed!</div><div><br></div><div>Brad</div><div><div class="h5"><div><br><div><div>On Nov 3, 2014, at 12:55 PM, Oswaldo Cavalcante <<a href="mailto:jocmail@gmail.com" target="_blank">jocmail@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr">Thanks!<div><br></div><div>In fact, I've tried to compile, but I got errors in two different machines. When the file libSimpleITKJava.so is being generated, the memory uses increases a lot (about further 4 Gb!!), so the process is stopped with a message like this: 'error: no enough memory'. I've tried several times, but I couldn't generate the native libs.</div><div><br></div><div>Another doubt, <span style="font-family:arial,sans-serif;font-size:13px">is that i'm trying and searching about to cast or in some way use a Java BufferedImage in the SimpleITK. How can I do it?</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks a lot!</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-03 14:39 GMT-03:00  <span dir="ltr"><<a href="mailto:michkapopoff@gmail.com" target="_blank">michkapopoff@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi<div><br></div><div>the thing is that we can not provide binaries for each platform / OS. Especially that there would be a lot of languages and combinations to support (python, java, 32 bit, 64 bit …). You may have to build SimpleITK by yourself. You can find instructions for this here [1]. You will need cmake for this. Please look at the super build part.</div><div><br></div><div>Michka</div><div><br></div><div>[1] <a href="http://www.itk.org/Wiki/SimpleITK/GettingStarted" target="_blank">http://www.itk.org/Wiki/SimpleITK/GettingStarted</a></div><div><br><div><blockquote type="cite"><div><div><div>On 03 Nov 2014, at 17:47, Oswaldo Cavalcante <<a href="mailto:jocmail@gmail.com" target="_blank">jocmail@gmail.com</a>> wrote:</div><br></div></div><div><div><div><div dir="ltr">Hello,<div><br></div><div>I'm trying to learn and use SimpleITK wrapped for Java in my project, but I would like to code on Ubuntu. Unfortunately, there is no binaries for 32-bit on the SimpleITK downloads page.</div><div><br></div><div>Could someone help me sending these binaries? Especially the native libraries for Java in 32-bit architecture, the file "libSimpleITKJava.so".</div><div><br></div><div>Another question, is that i'm trying and searching about to cast or in some way use a Java BufferedImage in the SimpleITK Image. How can I do it?</div><div><br></div><div>Thanks<br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div style="text-align:right"><b><font color="#333333" face="georgia, serif"><i>José Oswaldo Cavalcante da Silva Filho</i></font></b></div><div style="text-align:right"><b><br></b></div><div style="text-align:right">Mestrando em Informática pela Universidade Federal de Alagoas</div><div style="text-align:right">Professor da Faculdade de Tecnologia de Alagoas</div><div style="text-align:right"><font size="1"><a href="http://lattes.cnpq.br/0516674124789514" target="_blank">http://lattes.cnpq.br/0516674124789514</a></font></div><div><div style="text-align:right"><br></div><div style="text-align:right">--</div><div style="text-align:right"><font face="georgia, serif" color="#666666"><i>"Deus deseja que a Bíblia seja lida por homens de ciência como também por pessoas que não têm essas maneiras estranhas de pensar" </i>[</font><span style="color:rgb(102,102,102);font-family:georgia,serif">Donald E. Knuth]</span></div></div></div></div>
</div></div></div></div>
_______________________________________________<br>Community mailing list<br><a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br><a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br></div></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div style="text-align:right"><b><font color="#333333" face="georgia, serif"><i>José Oswaldo Cavalcante da Silva Filho</i></font></b></div><div style="text-align:right"><b><br></b></div><div style="text-align:right">Mestrando em Informática pela Universidade Federal de Alagoas</div><div style="text-align:right">Professor da Faculdade de Tecnologia de Alagoas</div><div style="text-align:right"><font size="1"><a href="http://lattes.cnpq.br/0516674124789514" target="_blank">http://lattes.cnpq.br/0516674124789514</a></font></div><div><div style="text-align:right"><br></div><div style="text-align:right">--</div><div style="text-align:right"><font face="georgia, serif" color="#666666"><i>"Deus deseja que a Bíblia seja lida por homens de ciência como também por pessoas que não têm essas maneiras estranhas de pensar" </i>[</font><span style="color:rgb(102,102,102);font-family:georgia,serif">Donald E. Knuth]</span></div></div></div></div>
</div>
_______________________________________________<br>Community mailing list<br><a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br><a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br></blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="text-align:right"><b><font color="#333333" face="georgia, serif"><i>José Oswaldo Cavalcante da Silva Filho</i></font></b></div><div style="text-align:right"><b><br></b></div><div style="text-align:right">Mestrando em Informática pela Universidade Federal de Alagoas</div><div style="text-align:right">Professor da Faculdade de Tecnologia de Alagoas</div><div style="text-align:right"><font size="1"><a href="http://lattes.cnpq.br/0516674124789514" target="_blank">http://lattes.cnpq.br/0516674124789514</a></font></div><div><div style="text-align:right"><br></div><div style="text-align:right">--</div><div style="text-align:right"><font face="georgia, serif" color="#666666"><i>"Deus deseja que a Bíblia seja lida por homens de ciência como também por pessoas que não têm essas maneiras estranhas de pensar" </i>[</font><span style="color:rgb(102,102,102);font-family:georgia,serif">Donald E. Knuth]</span></div></div></div></div>
</div>