Skip to content

Commit aeffccd

Browse files
committed
Add Width, Height, and Depth properties for PixImage and PixVolume
1 parent 9ef20e4 commit aeffccd

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/Aardvark.Base.Tensors.CSharp/PixImage/PixImage.cs

+8
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,14 @@ public PixImage(Col.Format format)
372372

373373
public V2l SizeL => VolumeInfo.Size.XY;
374374

375+
public int Width => Size.X;
376+
377+
public long WidthL => SizeL.X;
378+
379+
public int Height => Size.Y;
380+
381+
public long HeightL => SizeL.Y;
382+
375383
public int ChannelCount => (int)VolumeInfo.Size.Z;
376384

377385
public long ChannelCountL => VolumeInfo.Size.Z;

src/Aardvark.Base.Tensors.CSharp/PixImage/PixVolume.cs

+12
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ public PixVolume(Col.Format format)
4444

4545
public V3l SizeL => Tensor4Info.Size.XYZ;
4646

47+
public int Width => Size.X;
48+
49+
public long WidthL => SizeL.X;
50+
51+
public int Height => Size.Y;
52+
53+
public long HeightL => SizeL.Y;
54+
55+
public int Depth => Size.Z;
56+
57+
public long DepthL => SizeL.Z;
58+
4759
public int ChannelCount => (int)Tensor4Info.Size.W;
4860

4961
public long ChannelCountL => Tensor4Info.Size.W;

0 commit comments

Comments
 (0)