# How to deploy vtkNIFTIImagePrivate.h to the install path by cmake

**URL:** https://discourse.vtk.org/t/how-to-deploy-vtkniftiimageprivate-h-to-the-install-path-by-cmake/3416
**Category:** Support
**Created:** [May 29, 2020, 10:04am UTC](https://discourse.vtk.org/t/how-to-deploy-vtkniftiimageprivate-h-to-the-install-path-by-cmake/3416 "2020-05-29T10:04:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![yuhuimoon](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/c6cbf5/32.png) [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)
#### Post date: [May 29, 2020, 10:04am UTC](https://discourse.vtk.org/t/how-to-deploy-vtkniftiimageprivate-h-to-the-install-path-by-cmake/3416/1 "2020-05-29T10:04:59Z")

</div>

I want to use [nifti\_1\_header](https://vtk.org/doc/nightly/html/structnifti __1__ header.html) struct in **vtkNIFTIImagePrivate.h**. I find the header file does not exsit in my vtk install path. I guess that I have missed some option in cmake. So, I want to know how to make correct setting to deploy the header to the install path. Or, I have to copy the header to the path manually? Thanks in advance.

B.T.W. I have chosen the **vtk\_group\_imaging** option in cmake.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [May 29, 2020, 1:53pm UTC](https://discourse.vtk.org/t/how-to-deploy-vtkniftiimageprivate-h-to-the-install-path-by-cmake/3416/2 "2020-05-29T13:53:45Z")

</div>

As the name suggests, that API is private to VTK and not an exposed API. Though it is just some C declarations. @dgobbi Is there another source for these data structures that could be used?

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [May 29, 2020, 2:23pm UTC](https://discourse.vtk.org/t/how-to-deploy-vtkniftiimageprivate-h-to-the-install-path-by-cmake/3416/3 "2020-05-29T14:23:09Z")

</div>

The `nifti_1_header` struct is defined in the [nifti1.h](https://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1.h) header from libnifti.

For manipulation/copying of the header info, the vtkNIFTIImageHeader class is what should be used. The nifti\_1\_header Set/Get methods of this class are only intended to be used by people who are already using libnifti in their apps.

---

<div class="post-metadata">

### Author: ![yuhuimoon](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/c6cbf5/32.png) [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)
#### Post date: [May 30, 2020, 4:44pm UTC](https://discourse.vtk.org/t/how-to-deploy-vtkniftiimageprivate-h-to-the-install-path-by-cmake/3416/4 "2020-05-30T16:44:38Z")

</div>

I get it. Thank you!

---

<div class="post-metadata">

### Author: ![yuhuimoon](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/c6cbf5/32.png) [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)
#### Post date: [May 30, 2020, 4:45pm UTC](https://discourse.vtk.org/t/how-to-deploy-vtkniftiimageprivate-h-to-the-install-path-by-cmake/3416/5 "2020-05-30T16:45:32Z")

</div>

Thanks!
