@@ -29,6 +29,7 @@ namespace rerun::archetypes {
2929 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
3030 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
3131 /// The length of the data should be `W * H * pixel_format.bytes_per_pixel`.
32+ /// @param resolution The resolution of the image as {width, height}.
3233 /// @param pixel_format How the data should be interpreted.
3334 Image(
3435 Collection<uint8_t> bytes, WidthHeight resolution,
@@ -42,6 +43,7 @@ namespace rerun::archetypes {
4243 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
4344 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
4445 /// The length of the data should be `W * H * datatype.bytes * color_model.num_channels`.
46+ /// @param resolution The resolution of the image as {width, height}.
4547 /// @param color_model The color model of the pixel data.
4648 /// @param datatype Datatype of the individual channels of the color model.
4749 Image(
@@ -57,6 +59,7 @@ namespace rerun::archetypes {
5759 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
5860 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
5961 /// The length of the data should be `W * H * color_model.num_channels`.
62+ /// @param resolution The resolution of the image as {width, height}.
6063 /// @param color_model The color model of the pixel data.
6164 /// Each element in elements is interpreted as a single channel of the color model.
6265 template <typename T>
@@ -72,6 +75,7 @@ namespace rerun::archetypes {
7275 /// @param elements The raw image data.
7376 /// ⚠️ Does not take ownership of the data, the caller must ensure the data outlives the image.
7477 /// The number of elements is assumed to be `W * H * color_model.num_channels`.
78+ /// @param resolution The resolution of the image as {width, height}.
7579 /// @param color_model The color model of the pixel data.
7680 /// Each element in elements is interpreted as a single channel of the color model.
7781 template <typename T>
@@ -92,7 +96,7 @@ namespace rerun::archetypes {
9296 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
9397 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
9498 /// The length of the data should be `W * H`.
95- /// @param resolution The resolution of the image.
99+ /// @param resolution The resolution of the image as {width, height} .
96100 static Image from_greyscale8(Collection<uint8_t> bytes, WidthHeight resolution) {
97101 return Image(bytes, resolution, datatypes::ColorModel::L, datatypes::ChannelDatatype::U8);
98102 }
@@ -103,7 +107,7 @@ namespace rerun::archetypes {
103107 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
104108 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
105109 /// The length of the data should be `W * H * 3`.
106- /// @param resolution The resolution of the image.
110+ /// @param resolution The resolution of the image as {width, height} .
107111 static Image from_rgb24(Collection<uint8_t> bytes, WidthHeight resolution) {
108112 return Image(
109113 bytes,
@@ -119,7 +123,7 @@ namespace rerun::archetypes {
119123 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
120124 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
121125 /// The length of the data should be `W * H * 4`.
122- /// @param resolution The resolution of the image.
126+ /// @param resolution The resolution of the image as {width, height} .
123127 static Image from_rgba32(Collection<uint8_t> bytes, WidthHeight resolution) {
124128 return Image(
125129 bytes,
0 commit comments