[Chimera-users] Volume and mesh data simultaneously? Coordinate space is different

Elaine Meng meng at cgl.ucsf.edu
Thu Jul 28 09:28:20 PDT 2016


Hi Marvin,
Thanks for attaching the files.  I don’t know the details of how the coordinates are set up for the TIF stack, so that may have to wait until next week when our Volume Viewer expert is back from vacation.  However, in the meanwhile...

After opening your data, it occurred to me that in Volume Viewer you may be able to change the offset (origin grid index) and voxel size of the volume data to sync up with the VRML model.  In the Volume Viewer menu, choose Features… Coordinates.  That will put the relevant entry fields in the Volume Viewer dialog.
<http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/volumeviewer/volumeviewer.html#coordinates>

You can also make these adjustments using options of the “volume” command instead of interactively in the Volume Viewer dialog.  
<http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/volume.html#dimensions>

I guess the main difficulty is figuring out what those values should be, but maybe you already know.
I hope this helps,
Elaine
----------
Elaine C. Meng, Ph.D. 
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Jul 28, 2016, at 12:55 AM, Marvin Albert <marvin.albert at gmail.com> wrote:
> 
> Hi Elaine,
> 
> ok I attached the files here.
> 
> I have an image processing pipeline (external to chimera) which segments 3d image stacks and produces a .wrl file (also including meshlab as a tool). I want to use chimera for producing a nice video visualising the individual steps of the segmentation (which consist of .tif and .wrl outputs).
> If I load in the .wrl and .tif into python for example, coordinates perfectly overlap. Also the coordinates in the raw .wrl file seem to look good.
> 
> How does chimera load in the 3d tif stacks?
> 
> With kind regards,
> Marvin
> 
> <cube.tif><cube.wrl>
> 
> 
>> On 27 Jul 2016, at 19:14, Elaine Meng <meng at cgl.ucsf.edu> wrote:
>> 
>> Hi Marvin,
>> That link asks for a login, but I can imagine you have two representations of the same object(s) that are not superimposed.  (BTW, you can attach images to emails here as long as they aren’t huge.)
>> 
>> …However, I don’t understand where these files came from, and thus why you expect them to be aligned.  Did you read a TIFF stack into Chimera as a volume, then contour it, and then export the surface as .wrl?  Chimera does not save volumes as .tif, it only saves an image of the graphics window contents in that format, without relationship to the original 3D coordinates.
>> 
>> If some other program wrote the .tif (stack??)  and .wrl, I’d put the onus on that program to preserve the coordinate system.  Or, maybe it is not possible to preserve 3D coordinates with the .tif format and you’d have to use a real volume format instead of an image stack.
>> 
>> I’m not the expert on this topic, but the others are away.  We may need to wait for their opinion(s), but in the meanwhile, clarifying your workflow might help.
>> Thanks,
>> Elaine
>> -----
>> Elaine C. Meng, Ph.D.                       
>> UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
>> Department of Pharmaceutical Chemistry
>> University of California, San Francisco
>> 
>> On Jul 27, 2016, at 9:49 AM, Marvin Albert <marvin.albert at gmail.com> wrote:
>> 
>>> Hi all,
>>> I process 3d objects and want to visualise them as meshes and volumes simultaneously.
>>> However, when I load them into chimera the coordinates of the two are different (meaning they don’t overlap).
>>> 
>>> Is there an obvious reason for this? Would the volume viewer show a .tif file with different coordinates than chimera shows the .wrl mesh?
>>> 
>>> (this tiny cube exemplifies my problem: http://www.filedropper.com/cube_3)
>>> 
>>> Thanks a lot in advance,
>>> Marvin
>> 





More information about the Chimera-users mailing list