Giter Site home page Giter Site logo

mshwfs's People

Contributors

jacopoantonello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mshwfs's Issues

Centroid Function: Inconsistency in Variable Convention and Output Format

In the centroid function, there is a swap of the X and Y variables in both the input and output. Although the fragment "Centroid works on column major order" is present, it does not explicitly state that this function returns positions in the format [Y, X]. Especially considering that all code in centroid.m suggests it follows the convention [X, Y]. This change in convention also complicates swapping the centroid method with others, as other methods typically use the convention [X, Y], thus reducing the code's flexibility. To rectify this and provide clarity:

[w, h] = size(im); -> [h, w] = size(im);
Size returns length of dimensions in order Y, X, Z...

[yy, xx] = meshgrid(1:h, 1:w); -> [xx, yy] = meshgrid(1:w, 1:h);
Meshgrid input and output is [X,Y] = meshgrid(x,y)(https://se.mathworks.com/help/matlab/ref/meshgrid.html#d126e1020611)

In the function outside of centroid in shwfs_make_fine_grid.m, there is a change:

dd = shstruct.centroid(subimage, level);
centres(i, :) = [cc(1)+dd(2)-1, cc(3)+dd(1)-1];
It is swap of x and y from dd. dd(1) = X and dd(2) = Y, so it is counterintuitive to add cc(1)+dd(2) (X+Y) and cc(2)+dd(1) (Y+X).
After changes in centroid.m it should be:
centres(i, :) = [cc(1)+dd(1)-1, cc(3)+dd(2)-1];

image
Zrzut ekranu 2024-04-18 150725

Error using rectangle in calibration.

I am using .bmp image for calibration after converting it into .mat. When I reduce the shstruct.coarse_grid_radius, i.e.radius for coarse grid from 16 to 10, for instance, the error that comes is, "any non finite? 1". It happens with some images. Most of the images can manage coarse grid radius of a wide range like (10,16). Some can take only above 15. I guess, one of the centers in shwfs_make_fine_grid code takes non-finite value, which one, I don't know. What to do to handle this error?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.