Jump to content

Extract float16 data from volume: allVoxelsAsString


nord3d

Recommended Posts

Hi

 

Volumes in Houdini can store data in 16-bit float, but i wonder, how to extract such data in Python.

 

For point attributes, i can use something as:

geo.pointFloatAttribValuesAsString("a", float_type=hou.numericData.Float16)

( thanks for ali , http://forums.odforce.net/topic/19848-numpy-question/?hl=float_type#entry119038 )

 

 

 

But for volume, the "similar" method, allVoxelsAsString() , haven't any parameter for explicitly set data type (other then the default Float32).

 

Is there solution other then extract 32-bit data from initially 16-bit(!) volume and then convert it back to float16 ?

 

 

 

Thanks in advance

Edited by nord3d
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...