Download src/fiberpose/resources/fiber_tool.ui from vikba/fp2: direct link, hf CLI and curl.
- Browser
- Download file 33.5 kB
-
https://huggingface.co/spaces/vikba/fp2/resolve/main/src/fiberpose/resources/fiber_tool.ui
- Command line
-
hf download hf://spaces/vikba/fp2/src/fiberpose/resources/fiber_tool.ui
-
curl -L -o fiber_tool.ui https://huggingface.co/spaces/vikba/fp2/resolve/main/src/fiberpose/resources/fiber_tool.ui
33.5 kB
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1100</width>
<height>800</height>
</rect>
</property>
<property name="windowTitle">
<string/>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="leftMargin">
<number>10</number>
</property>
<property name="topMargin">
<number>18</number>
</property>
<item>
<widget class="QFrame" name="frame">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>320</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>320</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Shape::NoFrame</enum>
</property>
<layout class="QVBoxLayout" name="leftLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="loadRow">
<item>
<widget class="QPushButton" name="btn_load_image">
<property name="text">
<string>Load image</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_load_folder">
<property name="text">
<string>Load folder</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_image_name">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Image: none</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_segmentation">
<property name="title">
<string>Segmentation</string>
</property>
<layout class="QVBoxLayout" name="segmentationLayout">
<item>
<widget class="QPushButton" name="btn_segment">
<property name="text">
<string>Segment</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="segmentationBasicRow">
<item>
<widget class="QLabel" name="label_resolution">
<property name="text">
<string>Resolution:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="cb_scale">
<item>
<property name="text">
<string>0.5x</string>
</property>
</item>
<item>
<property name="text">
<string>1x</string>
</property>
</item>
<item>
<property name="text">
<string>2x</string>
</property>
</item>
<item>
<property name="text">
<string>4x</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="segmentationBasicSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="chb_invert">
<property name="text">
<string>Invert image</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QToolButton" name="btn_segmentation_advanced">
<property name="text">
<string>Advanced</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonStyle::ToolButtonTextBesideIcon</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
<property name="arrowType">
<enum>Qt::ArrowType::RightArrow</enum>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_segmentation_advanced" native="true">
<layout class="QVBoxLayout" name="segmentationAdvancedLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="modelRow">
<item>
<widget class="QLabel" name="label_model">
<property name="text">
<string>Model:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="cb_model">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="gradientRow">
<item>
<widget class="QLabel" name="label_gradient">
<property name="text">
<string>Gradient magnitude:</string>
</property>
</widget>
</item>
<item>
<spacer name="gradientSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDoubleSpinBox" name="sp_grad_magnitude_threshold">
<property name="decimals">
<number>2</number>
</property>
<property name="maximum">
<double>5.000000000000000</double>
</property>
<property name="singleStep">
<double>0.050000000000000</double>
</property>
<property name="value">
<double>0.800000000000000</double>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="modeRow">
<item>
<widget class="QRadioButton" name="rb_watershed">
<property name="text">
<string>Watershed</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="rb_ridge">
<property name="text">
<string>Radial expansion</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="flagsRow">
<item>
<widget class="QCheckBox" name="chb_strict">
<property name="text">
<string>Strict</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chb_usegpu">
<property name="text">
<string>Use GPU</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QPushButton" name="btn_plot_profile">
<property name="text">
<string>Plot profile</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_measurement">
<property name="title">
<string>Measurement</string>
</property>
<layout class="QVBoxLayout" name="measurementLayout">
<item>
<widget class="QPushButton" name="btn_measure">
<property name="text">
<string>Measure</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="pixelSizeRow">
<item>
<widget class="QLabel" name="label_pixel_size">
<property name="text">
<string>Pixel size:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="le_pixelsize">
<property name="maximumSize">
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>1</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_pixel_unit">
<property name="text">
<string>px</string>
</property>
</widget>
</item>
<item>
<spacer name="pixelSizeSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btn_set_scalebar">
<property name="text">
<string>Set scalebar…</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QToolButton" name="btn_measurement_advanced">
<property name="text">
<string>Advanced</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonStyle::ToolButtonTextBesideIcon</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
<property name="arrowType">
<enum>Qt::ArrowType::RightArrow</enum>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_measurement_advanced" native="true">
<layout class="QVBoxLayout" name="measurementAdvancedLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="voxelDepthRow">
<item>
<widget class="QLabel" name="label_voxel_depth">
<property name="text">
<string>Voxel depth:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="le_voxeldepth">
<property name="maximumSize">
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>1</string>
</property>
</widget>
</item>
<item>
<spacer name="voxelDepthSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_overlay">
<property name="text">
<string>Overlay:</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="overlayRow">
<item>
<widget class="QRadioButton" name="rb_show_diam">
<property name="text">
<string>Diameters</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="rb_show_direct">
<property name="text">
<string>Directions</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="rb_show_pores">
<property name="text">
<string>Pores</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_export">
<property name="title">
<string>Export results</string>
</property>
<layout class="QVBoxLayout" name="exportLayout">
<item>
<widget class="QPushButton" name="btn_export_results">
<property name="text">
<string>Export results</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chb_export_labels">
<property name="text">
<string>Segmentation masks</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chb_export_tables">
<property name="text">
<string>Measurements table (CSV)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chb_export_overlay">
<property name="text">
<string>Overlay visualization</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btn_export_advanced">
<property name="text">
<string>Advanced</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonStyle::ToolButtonTextBesideIcon</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
<property name="arrowType">
<enum>Qt::ArrowType::RightArrow</enum>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_export_advanced" native="true">
<layout class="QVBoxLayout" name="exportAdvancedLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QCheckBox" name="chb_export_diameters">
<property name="text">
<string>Diameter measurements overlay</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chb_export_orientations">
<property name="text">
<string>Orientation measurements overlay</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chb_export_outline">
<property name="text">
<string>Segmentation outline image</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chb_export_dt">
<property name="text">
<string>Distance transform (float32 TIFF)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chb_export_foreground">
<property name="text">
<string>Foreground probability (float32 TIFF)</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="imageFormatRow">
<item>
<widget class="QLabel" name="label_image_format">
<property name="text">
<string>Image format:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="cb_image_format">
<item>
<property name="text">
<string>png</string>
</property>
</item>
<item>
<property name="text">
<string>tiff</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="imageFormatRowSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="collisionRow">
<item>
<widget class="QLabel" name="label_collision">
<property name="text">
<string>Collision policy:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="cb_collision">
<item>
<property name="text">
<string>suffix</string>
</property>
</item>
<item>
<property name="text">
<string>overwrite</string>
</property>
</item>
<item>
<property name="text">
<string>error</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="collisionRowSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="chb_write_manifest">
<property name="text">
<string>Write export manifest (manifest.json)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="leftSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1,0">
<item>
<layout class="QHBoxLayout" name="viewRow">
<item>
<widget class="QLabel" name="label_view">
<property name="text">
<string>View:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="cb_view">
<item>
<property name="text">
<string>Original</string>
</property>
</item>
<item>
<property name="text">
<string>DT</string>
</property>
</item>
<item>
<property name="text">
<string>Foreground</string>
</property>
</item>
<item>
<property name="text">
<string>Gradient magnitude</string>
</property>
</item>
<item>
<property name="text">
<string>DT grad error</string>
</property>
</item>
<item>
<property name="text">
<string>Centerlines</string>
</property>
</item>
<item>
<property name="text">
<string>Segmentation outline</string>
</property>
</item>
<item>
<property name="text">
<string>Segmentation</string>
</property>
</item>
<item>
<property name="text">
<string>Overlay</string>
</property>
</item>
<item>
<property name="text">
<string>Measurements overlay</string>
</property>
</item>
<item>
<property name="text">
<string>Sampling</string>
</property>
</item>
<item>
<property name="text">
<string>Laplacian</string>
</property>
</item>
<item>
<property name="text">
<string>gx</string>
</property>
</item>
<item>
<property name="text">
<string>gy</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_save_screenshot">
<property name="text">
<string>Export Current View</string>
</property>
</widget>
</item>
<item>
<spacer name="viewSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QGraphicsView" name="graphicsView">
<property name="minimumSize">
<size>
<width>493</width>
<height>400</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_plots" native="true">
<layout class="QVBoxLayout" name="plotsAreaLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="unitsRow">
<item>
<widget class="QLabel" name="label_units">
<property name="text">
<string>Units:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="cb_units">
<item>
<property name="text">
<string>px</string>
</property>
</item>
<item>
<property name="text">
<string>um</string>
</property>
</item>
<item>
<property name="text">
<string>nm</string>
</property>
</item>
<item>
<property name="text">
<string>mm</string>
</property>
</item>
<item>
<property name="text">
<string>m</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="unitsSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="plotsRow">
<item>
<widget class="PlotWidget" name="graph_diameters" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>200</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>300</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="PlotWidget" name="graph_angles" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>200</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>300</height>
</size>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="statsColumn">
<item>
<widget class="QPlainTextEdit" name="text_edit2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Ignored">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>160</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>240</width>
<height>300</height>
</size>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item alignment="Qt::AlignmentFlag::AlignLeft">
<widget class="QPushButton" name="btn_export_csv">
<property name="text">
<string>Export CSV</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QScrollBar" name="z_scroll"/>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1100</width>
<height>33</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>
</property>
<addaction name="action_load_image"/>
<addaction name="action_batch_processing"/>
<addaction name="action_save_masks_predictions"/>
<addaction name="action_save_measurements"/>
</widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
<string>Edit</string>
</property>
<addaction name="action_edit_config"/>
<addaction name="action_load_config"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<string>Models</string>
</property>
<addaction name="actionAdd_custom_model"/>
<addaction name="actionRemove_model"/>
</widget>
<widget class="QMenu" name="menuHelp_2">
<property name="title">
<string>Help</string>
</property>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
<addaction name="menuHelp"/>
<addaction name="menuHelp_2"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="action_load_image">
<property name="text">
<string>Open Image/Stack</string>
</property>
</action>
<action name="action_save_masks_predictions">
<property name="text">
<string>Save Segmentation Results</string>
</property>
</action>
<action name="action_save_measurements">
<property name="text">
<string>Save measurements (CSV)</string>
</property>
</action>
<action name="actionAdd_custom_model">
<property name="text">
<string>Add model</string>
</property>
</action>
<action name="actionRemove_model">
<property name="text">
<string>Remove model</string>
</property>
</action>
<action name="action_batch_processing">
<property name="text">
<string>Open Folder (Batch Mode)</string>
</property>
</action>
<action name="action_edit_config">
<property name="text">
<string>Edit config...</string>
</property>
</action>
<action name="action_load_config">
<property name="text">
<string>Load config...</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
<class>PlotWidget</class>
<extends>QWidget</extends>
<header>pyqtgraph</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1100</width>
<height>800</height>
</rect>
</property>
<property name="windowTitle">
<string/>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="leftMargin">
<number>10</number>
</property>
<property name="topMargin">
<number>18</number>
</property>
<item>
<widget class="QFrame" name="frame">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>320</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>320</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Shape::NoFrame</enum>
</property>
<layout class="QVBoxLayout" name="leftLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="loadRow">
<item>
<widget class="QPushButton" name="btn_load_image">
<property name="text">
<string>Load image</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_load_folder">
<property name="text">
<string>Load folder</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_image_name">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Image: none</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_segmentation">
<property name="title">
<string>Segmentation</string>
</property>
<layout class="QVBoxLayout" name="segmentationLayout">
<item>