File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,10 @@ def from_numpy(
8282 image direction
8383
8484 has_components : boolean
85- whether the image has components
85+ whether the image has vector components.
86+
87+ is_rgb : boolean
88+ whether the image is RGB. This implies has_components=True.
8689
8790 Returns
8891 -------
Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ void local_antsImage(nb::module_ &m) {
108108 m.def (" getComponents" , &getComponents<itk::VectorImage<double ,2 >>);
109109 m.def (" getComponents" , &getComponents<itk::VectorImage<double ,3 >>);
110110 m.def (" getComponents" , &getComponents<itk::VectorImage<double ,4 >>);
111+ m.def (" getComponents" , &getComponents<itk::Image<itk::RGBPixel<unsigned char >,2 >>);
112+ m.def (" getComponents" , &getComponents<itk::Image<itk::RGBPixel<unsigned char >,3 >>);
111113
112114 m.def (" getShape" , &getShape<itk::Image<unsigned char ,2 >>);
113115 m.def (" getShape" , &getShape<itk::Image<unsigned char ,3 >>);
You can’t perform that action at this time.
0 commit comments