Skip to content

Gear simulator ssg - #1464

Open
bwdev01 wants to merge 3 commits into
masterfrom
Gear_Simulator_SSG
Open

Gear simulator ssg#1464
bwdev01 wants to merge 3 commits into
masterfrom
Gear_Simulator_SSG

Conversation

@bwdev01

@bwdev01 bwdev01 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@bwdev01
bwdev01 requested a review from agalasso September 5, 2026 20:43
Comment thread src/gear_simulator.cpp
Comment on lines +609 to +610
bool LoadNonFitsImage(cv::Mat& img, bool preProcess, wxSize& fullSize);
bool LoadFitsImage(usImage& img, cv::Mat& matImage, bool preProcess, wxSize& fullsize);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we combine these into a single LoadImage method that does everything and remove the filename extension check from the caller (it's duplicated in the method and needn't be done twice).
We can also remove the preProcess argument since it is always true.

Comment thread src/gear_simulator.cpp
bool LoadFitsImage(usImage& img, cv::Mat& matImage, bool preProcess, wxSize& fullsize);
void PreProcessImage(cv::Mat& img);
void GetSimDisplacements(double *pDeltaX, double *pDeltaY, double *pGearTime, bool TransformToCameraCoords);
bool ApplySimDisplacements(usImage *img, cv::Mat& matImage);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const since it does not modify matImage

Suggested change
bool ApplySimDisplacements(usImage *img, cv::Mat& matImage);
bool ApplySimDisplacements(usImage *img, const cv::Mat& matImage);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants