Open shVarun1985 opened 1 year ago
Hi!
We wrote this project for a university lab 3 years ago, so I'm not super familiar anymore and cannot guarantee that it will work, but you're welcome to try. :)
To your question: As I described here, NRRD is a super simple file format, but it still supports a large number of options, so I decided to require a specific format. Some of these (such as datatype) can be easily converted using the pynrrd
library and the provided script, others (such as the space directions
header, which specifies which spatial axes the dimensions of the NRRD correspond to) are trickier and would require reprocessing of the data.
While we can handle arbitrary (non-zero) scale of these axes (i.e. the diagonal terms of the space directions
matrix), we do not allow the NRRD data to be spatially rotated or skewed (i.e. non-zero off-diagonal terms).
If you just want to try something out, you could manually edit your NRRD using a text editor and modify the space directions
header at the top of the file to be axis-aligned (i.e. (x,0,0) (0,y,0) (0,0,z)
for some values of x
, y
and z
).
Hi,
I am new to HL 2 development, and try your code and found out that I am not able to use any other nrrd even though I have converted that file using given python script. it throw exception "NRRD is not axis-aligned"
then I have seen your comment "The converter doesn't handle axis-alignedness or other axis-strangeness, so that will just be a requirement for now. "
Can you please suggest how to achieve that.
Thank you