User Tools

Site Tools


Sidebar

Top
Profile
Freelancing
Seminar
Courses -2016
Courses 2018-
Textbooks
Documents
Downloads (-2016)
Downloads (2016-)
Weblog
RSS aggregates
Discussions
Archives
日本語


EMBL BioImage Data Analysis

EuBIAS

NEUBIAS

—- Contact
CMCI Alumni
ALMF
EMBL Heidelberg
EMBL Intranet


Popularity Ranking


Timeline of @cmci_

cmci_ avatar

RT @JenCWaters: For those of you starting your career as an imaging scientist, cool opportunity to gain experience and exposure working wit…
About 1 day, 4 hours ago by: Kota Miura (@cmci_)

cmci_ avatar

RT @Rami_Krispin: The K-Means Clustering An Explorable Explainer app, by @yizhe_ang, is another great example of explaining data science co…
About 2 days ago by: Kota Miura (@cmci_)

cmci_ avatar

RT @eLife: Cancer cells hide inside other cancer cells when the immune system attacks, letting the cell inside survive. https://t.co/lfMHSY
About 2 days, 1 hour ago by: Kota Miura (@cmci_)

cmci_ avatar

RT @psobolewskiPhD: @cmci_ There is! First get LaTeX using R package by @carroll_jono or the other using @MathpixApp https://t.co/ECzcaM1jn
About 2 days, 2 hours ago by: Kota Miura (@cmci_)

cmci_ avatar

It would be great also to have the inverse function: from math expression to codes. https://t.co/ntHm5sesAy
About 2 days, 5 hours ago by: Kota Miura (@cmci_)

cmci_ avatar

RT @melanoidin: In case anyone needs to see a @NobelPrize winner get tossed into a pond :) Congratulations, Svante! https://t.co/C6jnHO8nCr
About 2 days, 10 hours ago by: Kota Miura (@cmci_)
blogtng:2010-08-03:coding_memo_for_jacob_bridge_between_java_and_bitplane_imaris

Coding memo for JACOB Bridge between Java and Bitplane Imaris

In addition to the previous page (http://cmci.embl.de/blogtng/2010-06-17/imaris_-_java), here is a list of commands for JACOB bridge for Java and Imaris.

- To get an Instance of Imaris

ActiveXComponent imarisApplication = new ActiveXComponent("Imaris.Application");

- General syntax for getting/setting field values of IApplication getter:

imarisApplication.getProperty("FIELD_VALUE", PARAMETER);

setter:

imarisApplication.setProperty("FIELD_VALUE", PARAMETER);

- To keep Imaris opened (otherwise closes after operation)

imarisApplication.setProperty("mUserControl", true);

- To get an Instance of Imaris data

ActiveXComponent IDataSet = imarisApplication.getPropertyAsComponent("mDataSet");

- Creating new data in Imaris (empty)

...
Variant[] parameter = new Variant[6];
int ijXsize = imagestack.getWidth();
int ijYsize = imagestack.getHeight();
int ijnSlices = imagestack.getSize();
parameter[0] = new Variant(1);	//1 for type 8bit 
parameter[1] = new Variant(ijXsize);	//x
parameter[2] = new Variant(ijYsize);	//y
parameter[3] = new Variant(ijnSlices);  //z
parameter[4] = new Variant(1);			//channel
parameter[5] = new Variant(1);			//time point
IDataSet.invoke("Create", parameter);	

- getting data parameter from Imaris (data shown in Imaris). An example with image size in x

int imXsize = localIDataSet.getProperty("mSizeX").changeType(Variant.VariantInt).getInt();
blogtng/2010-08-03/coding_memo_for_jacob_bridge_between_java_and_bitplane_imaris.txt · Last modified: 2016/05/24 12:46 (external edit)