Skip to content

Commit

Permalink
Fixed output resize bug (#130)
Browse files Browse the repository at this point in the history
Co-authored-by: Błażej Sowa <[email protected]>
  • Loading branch information
amalnanavati and bjsowa authored Oct 1, 2024
1 parent cbdf983 commit 047857a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/image_streamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ void ImageTransportImageStreamer::imageCallback(const sensor_msgs::ImageConstPtr
int input_width = img.cols;
int input_height = img.rows;


output_width_ = input_width;
output_height_ = input_height;
if (output_width_ == -1)
output_width_ = input_width;
if (output_height_ == -1)
output_height_ = input_height;

if (invert_)
{
Expand Down

0 comments on commit 047857a

Please sign in to comment.