<div>Hi Mark,</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>With a .NET application, what is the simplest way to call an API for<br>
importing an Aperio.svs digital slide, along with being able to save<br>it's metadata?</blockquote><div><br></div><div>The simplest way is to make a system call to one of the Bio-Formats command line tools (<a href="http://loci.wisc.edu/bio-formats/command-line-tools" target="_blank">http://loci.wisc.edu/bio-formats/command-line-tools</a>). For example, you could call "bfconvert" to convert it to a temporary file in a format your application understands, then open that temporary file normally from .NET.</div>
<div><br></div><div>The next-most-simple (and more performant) would be to write some Java code that uses Bio-Formats to do exactly what you want, and then use a system call with pipes to pass the inputs, and receive the outputs, within your .NET application.</div>
<div><br></div><div>The most powerful and flexible way would be to use the Bio-Formats C++ bindings (<a href="http://loci.wisc.edu/bio-formats/bio-formats-c-bindings" target="_blank">http://loci.wisc.edu/bio-formats/bio-formats-c-bindings</a>) to access Bio-Formats via JNI in-process. Then you would have full access to the entire Bio-Formats API, but with more dependencies (need to link to Boost Thread library as well as Java's JVM.DLL).</div>
<div><br></div><div>For more details, see this page:</div><div> <a href="http://loci.wisc.edu/bio-formats/interfacing-non-java-code" target="_blank">http://loci.wisc.edu/bio-formats/interfacing-non-java-code</a></div>
<div><br></div><div>
Regards,</div><div>Curtis</div><div><br></div><br><div class="gmail_quote">On Mon, Jul 30, 2012 at 10:45 AM, <span dir="ltr"><<a href="mailto:mark.plaskow@americanhealthtechnology.com" target="_blank">mark.plaskow@americanhealthtechnology.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">With a .NET application, what is the simplest way to call an API for<br>
importing an Aperio.svs digital slide, along with being able to save<br>
it's metadata?<br>
<br>
<br>
<br>_______________________________________________<br>
ome-users mailing list<br>
<a href="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank">ome-users@lists.openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br>
<br></blockquote></div><br>