Python API tool for slicing image into channel dimension

オープン
#38 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@YooSunYoung がすでに取り組んでいます。

2026年9月10日 から。

  • #72 @YooSunYoung による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
data

調査の方向性

src/scitiff/_img_processors.py の values API の位置から始め、tests/scitiff_values_test.py を確認してください。その後、チャンネルのセマンティクスについて、リンクされている IO および slicing のガイドを参照してください。expected output に記載された values の動作を実装し、ユニットテストを追加して、user guide に API をドキュメント化してください。提供されている hyperstack の例に対して検証してください。

索引モデルが issue の本文から書いたものです。

説明

Requirement

We would like to have a python interface that can be used like this:

from scitiff.data import hyperstack_example_with_variances_and_mask
import scitiff as stf
import scipp as sc

sample_img = hyperstack_example_with_variances_and_mask(concatenated_channel=True)
display(sample_img)

stf.values(sample_img)

Expected Output

Scitiff image (as scipp.DataArray or scipp.DataGroup) that does not have extra channel other than values(intentisites).

And channel dimension should be squeezed.

If other channels are already assembled as variances,
it should still drop the variances.

It that case, mask may not be dropped (we can maybe add a keyword argument to explicitly drop mask as well).

About the Project

Scitiff stands for scientific tiff.

It aims to encode scientific metadata as a plain text along with the image data in tiff.

See our scitiff documentation for more details.

Development Environment

See Developer Guide to set up the local environment.

Setting up a remote repository

Go to the base branch, channel-slicer, and fork the repo.

TODO list of this issue

Related Information for Implementation

Scipp User Guide for Slicing

https://scipp.github.io/user-guide/slicing.html

We are going to learn more about scipp on Wednesday, so no need to dig in too deep 😁

IO module documentation

IO Helper Tutorial
Good starting point to see what scitiff do and to see what helper functions there are for development.

Meaning of Channel in Scitiff

This section of IO tutorial explains what channels mean in scitiff.

主要言語
Python
スター
0
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

scipp/scitiff のほかの issue

scipp/scitiff の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。