Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow adjustment of histogram bins #239

Closed
Labels
New featureNew feature or request
@K-Meech

Description

@K-Meech

It would be great to allow:

  • Adjustment of histogram bin width / locations via the UI
  • Using integer bin limits for integer images (e.g.uint8,uint16)

For example, if you show the coins image in Napari (File > Open Sample > napari builtins > Coins) and view the histogram, it has an odd 'spiky' appearance where every other bin is higher or lower:
Screenshot 2023-12-14 121238

I think this is because the limits of the bins aren't set to integer values (even though this image isuint8 and therefore only contains positive integers). E.g. I think the bins arenp.linspace(1, 252, 100) according tohere, so for example bin 20 onwards is:51.7, 54.2, 56.7, 59.3, 61.8, which means the bins accept pixel values of (52, 53, 54), (55, 56), (57, 58, 59), (60, 61)... This alternating of 2 and 3 pixel values in each bin gives this spiky appearance which is a bit misleading to the actual values. Would it be possible to set integer bin edges, or allow this to be set as an option? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    New featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp