Lukáš Jiřiště [Tue, 17 Dec 2024 09:03:34 +0000 (10:03 +0100)]
Fix path in create_mask and create_meter
Matlab is using path for where to look for functions. I used path as a
file path, overwriting the Matlab method. This is now solved.
Create_mask also can accept a single file now (even though it makes
little sense).
Lukáš Jiřiště [Mon, 14 Oct 2024 10:57:37 +0000 (12:57 +0200)]
Create separate script for meter creation
The script create_meter saves the (polynomial) coefficients with the
writematrix function as *.mtr file. The wanted meter is then loaded
interactively in the main script.
This commit is analogous to the refactoring of mask creation.
Lukáš Jiřiště [Mon, 19 Aug 2024 15:09:00 +0000 (17:09 +0200)]
Implement get_meter function
This function return a (polynomial) function (handle) which takes
coordinates in pixels in and returns coordinates in meters.
The order of the polynomial may specified in the third input with first
order (linear) being default.
Lukáš Jiřiště [Mon, 19 Aug 2024 11:38:03 +0000 (13:38 +0200)]
Remove majority of Bubliny.m
This is a start of major rewrite, so much of the code is thrown out.
The seed of the idea is implemented - maxfig, minfig and meanfig.
Those three hold the maximum, minimum and mean value of each pixel
during the whole measurement and should hold info about how to further
process the data.
Lukáš Jiřiště [Tue, 6 Aug 2024 08:27:59 +0000 (10:27 +0200)]
Change inner loop indexing
The inner loop now uses iteration counter as index and calculates a
separate index for files. This makes the allocated memory smaller and
indexing of some variable easier, especially plotting makes more sense.
As it is only read from the name of the directory, there are no changes
between iterations. LevelNum should eventually track the ACTUAL level.
When that time comes, it will be reintroduced to the loop as an array.
I dont know whether Matlab can't keep up and does not keep track of
figures, but some figures had no plots and other figures had the missing
plots. This is (hopefully) fixed by directly telling imshow and plot
what figure (axes) to use.