From 5deefc3af43a0f6cc3e645bf70bd7d9175d3648f Mon Sep 17 00:00:00 2001 From: kalman Date: Fri, 15 Mar 2019 20:15:55 +0800 Subject: [PATCH] fix(type): fix resize bug --- include/mynteye/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/mynteye/types.h b/include/mynteye/types.h index d5666db..a5969b6 100644 --- a/include/mynteye/types.h +++ b/include/mynteye/types.h @@ -458,6 +458,7 @@ struct MYNTEYE_API IntrinsicsPinhole : public IntrinsicsBase { fy *= resize_scale; cx *= resize_scale; cy *= resize_scale; + resize_scale = 1.0; } /** The focal length of the image plane, as a multiple of pixel width */ double fx; @@ -498,6 +499,7 @@ struct MYNTEYE_API IntrinsicsEquidistant : public IntrinsicsBase { coeffs[5] *= resize_scale; coeffs[6] *= resize_scale; coeffs[7] *= resize_scale; + resize_scale = 1.0; } };