{"id":18667502,"url":"https://github.com/ashkarin/pyellipsoid","last_synced_at":"2025-10-09T02:09:02.165Z","repository":{"id":62580148,"uuid":"185576802","full_name":"ashkarin/pyellipsoid","owner":"ashkarin","description":"PyEllipsoid is the package for drawing and analysis of ellipsoids in 3D volumetric images (3D arrays).","archived":false,"fork":false,"pushed_at":"2020-06-02T12:56:32.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-09T02:03:07.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashkarin.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-08T09:40:24.000Z","updated_at":"2021-06-08T09:02:35.000Z","dependencies_parsed_at":"2022-11-03T21:01:02.373Z","dependency_job_id":null,"html_url":"https://github.com/ashkarin/pyellipsoid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashkarin/pyellipsoid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashkarin%2Fpyellipsoid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashkarin%2Fpyellipsoid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashkarin%2Fpyellipsoid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashkarin%2Fpyellipsoid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashkarin","download_url":"https://codeload.github.com/ashkarin/pyellipsoid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashkarin%2Fpyellipsoid/sbom","scorecard":{"id":211715,"data":{"date":"2025-08-11","repo":{"name":"github.com/ashkarin/pyellipsoid","commit":"730eee60691e200e42ad375ac03b50f5c844de6f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 1/7 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T00:52:52.270Z","repository_id":62580148,"created_at":"2025-08-17T00:52:52.270Z","updated_at":"2025-08-17T00:52:52.270Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000774,"owners_count":26082906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T08:38:59.204Z","updated_at":"2025-10-09T02:09:02.145Z","avatar_url":"https://github.com/ashkarin.png","language":"Python","readme":"================\nPyEllipsoid\n================\n\n.. image:: https://travis-ci.org/ashkarin/pyellipsoid.svg?branch=master\n    :target: https://travis-ci.org/ashkarin/pyellipsoid\n\n\n**PyEllipsoid** is the package for drawing and analysis of ellipsoids in 3D volumetric images (3D arrays).\n\n\nInstallation\n------------\n\nThe easiest way to install the latest version is by using pip::\n\n    $ pip install pyellipsoid\n\nYou may also use Git to clone the repository and install it manually::\n\n    $ git clone https://github.com/ashkarin/pyellipsoid.git\n    $ cd pyellipsoid\n    $ python setup.py install\n\nHow to use\n------------\nTo draw an ellipsoid:\n\n.. code-block:: python\n\n  import numpy as np\n  from pyellipsoid import drawing\n\n  # Define an image shape, axis order is: Z, Y, X\n  image_shape = (128, 128, 128)\n\n  # Define an ellipsoid, axis order is: X, Y, Z\n  ell_center = (64, 64, 64)\n  ell_radii = (5, 50, 30)\n  ell_angles = np.deg2rad([80, 30, 20]) # Order of rotations is X, Y, Z\n\n  # Draw a 3D binary image containing the ellipsoid\n  image = drawing.make_ellipsoid_image(image_shape, ell_center, ell_radii, ell_angles)\n\n\nTo compute inertia ellipsoid for given ellipsoid image:\n\n.. code-block:: python\n\n  import numpy as np\n  from pyellipsoid import drawing, analysis\n\n  # Draw a 3D binary image containing an ellipsoid\n  image_shape = (128, 128, 128)\n  ell_center = (64, 64, 64)\n  ell_radii = (5, 50, 30)\n  ell_angles = np.deg2rad([80, 30, 20])\n  image = drawing.make_ellipsoid_image(image_shape, ell_center, ell_radii, ell_angles)\n\n  # Compute inertia ellipsoid\n  points = analysis.sample_random_points(image)\n  inertia_ellipsoid = analysis.compute_inertia_ellipsoid(points)\n\n\nTo rotate axes and find relative rotation between the original and rotated axes:\n\n.. code-block:: python\n\n  import numpy as np\n  from pyellipsoid import geometry\n\n  original_axes = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]])\n  rot_angles = np.deg2rad([0, 0, 45]) # Rotate around Z-axis by 45 deg\n\n  # Build rotation matrix and rotate the axes\n  rotm = geometry.build_rotation_matrix(*rot_angles)\n  rotated_axes = np.dot(rotm, np.transpose(original_axes)).T\n\n  # Find relative rotation\n  rel_rotm = geometry.find_relative_axes_rotation(original_axes, rotated_axes)\n\n  # Validate relative rotation matrix\n  rel_rotated_axes = np.dot(rel_rotm, np.transpose(original_axes)).T\n  assert(np.all(rotated_axes == rel_rotated_axes))\n\n  # Compute rotation angles\n  # Please note, that these angles might differ from rot_angles!\n  rel_rot_angles = geometry.rotation_matrix_to_angles(rel_rotm)\n  print(np.rad2deg(rel_rot_angles))\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashkarin%2Fpyellipsoid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashkarin%2Fpyellipsoid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashkarin%2Fpyellipsoid/lists"}