question reassigning properties

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

question reassigning properties

Cammer, Michael
I just wrote a simple macro to convert image 5D stacks to RGB stacks and want to transfer the Frame Interval info.  Transferring the spatial scale is simple using get and putVoxelSize.  Would somebody please point me to extracting and reassigning the fame interval?

Thanks!


________________________________________________________
Michael Cammer, Assistant Research Scientist
Skirball Institute of Biomolecular Medicine
Lab: (212) 263-3208  Cell: (914) 309-3270

</PRE>
<html>
<body>
------------------------------------------------------------<br />
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.<br />
=================================
</body>
</html>
<PRE>
Reply | Threaded
Open this post in threaded view
|

Re: question reassigning properties

Rasband, Wayne (NIH/NIMH) [E]
On May 12, 2011, at 11:40 AM, Cammer, Michael wrote:

> I just wrote a simple macro to convert image 5D stacks to RGB stacks and want to transfer the Frame Interval info.  Transferring the spatial scale is simple using get and putVoxelSize.  Would somebody please point me to extracting and reassigning the fame interval?

Use these Stack macro functions

  Stack.getFrameInterval() - Returns the frame interval in T units
  Stack.setFrameInterval(interval) - Sets the frame interval in T units
  Stack.getUnits(X,Y,Z,T,Value) - Returns the x, y, z, t and value units
  Stack.setTUnit(string) - Sets the T (time) unit

which are available in the 1.45h daily build.

-wayne