Skip to content

Commit

Permalink
Improve opening of OpenOrganelle data and default collection table vi…
Browse files Browse the repository at this point in the history
…ews to exclusive=false and add another column column to modify this behaviour
  • Loading branch information
tischi committed Nov 2, 2024
1 parent 1832be3 commit a0f972b
Show file tree
Hide file tree
Showing 63 changed files with 575 additions and 123 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<groupId>org.embl.mobie</groupId>
<artifactId>mobie-viewer-fiji</artifactId>
<version>5.5.5</version>
<!-- mvn clean install -Dmaven.test.skip=true -Dscijava.app.directory=/Users/tischer/Desktop/Fiji/Fiji-MoBIE.app -->
<version>5.5.6-SNAPSHOT</version>

<!-- mvn clean install -Dmaven.test.skip=true -Dscijava.app.directory=/Users/tischer/Desktop/Fiji/Fiji-MoBIE.app -->
<!-- ../scijava-scripts/release-version.sh - -skip-version-check - -skip-license-update -->
<!-- ../scijava-scripts/release-version.sh - -skip-version-check - -skip-license-update -->

Expand Down Expand Up @@ -83,7 +83,7 @@
<license.copyrightOwners>EMBL</license.copyrightOwners>
<enforcer.skip>true</enforcer.skip>

<mobie-io.version>3.0.4</mobie-io.version>
<mobie-io.version>3.1.0-SNAPSHOT</mobie-io.version>
<imagej-utils.version>0.7.0</imagej-utils.version>

<bigdataviewer-playground.version>0.9.0</bigdataviewer-playground.version>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/embl/mobie/MoBIE.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
import org.embl.mobie.lib.table.columns.CollectionTableConstants;
import org.embl.mobie.lib.table.saw.TableOpener;
import org.embl.mobie.lib.transform.GridType;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.util.ThreadHelper;
import org.embl.mobie.lib.view.ViewManager;
import org.embl.mobie.plugins.platybrowser.GeneSearchCommand;
import org.embl.mobie.ui.UserInterface;
Expand Down Expand Up @@ -137,7 +139,7 @@ public MoBIE( String uri, MoBIESettings settings ) throws IOException

CollectionTableDataSetter dataSetter = new CollectionTableDataSetter( table, settings.values.getDataRoot() );
dataSetter.addToDataset( dataset );
dataset.is2D( false ); // TODO: determine from data?!
dataset.is2D( settings.values.getBdvViewingMode().equals( BdvViewingMode.TwoDimensional ) );

initUiAndShowView( dataset.views().values().iterator().next().getName() );
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/embl/mobie/cmd/HCSCmd.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

import org.embl.mobie.MoBIE;
import org.embl.mobie.MoBIESettings;
import org.embl.mobie.lib.MoBIEHelper;
import picocli.CommandLine;
import picocli.CommandLine.Option;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import org.embl.mobie.ProjectType;
import org.embl.mobie.command.widget.SelectableImages;
import org.embl.mobie.command.widget.SwingSelectableImagesWidget;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.image.Image;
import org.embl.mobie.lib.image.RegionAnnotationImage;
import org.embl.mobie.lib.serialize.View;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import ij.process.ImageConverter;
import net.imglib2.display.ColorConverter;
import net.imglib2.realtransform.AffineTransform3D;
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.align.TurboReg2DAligner;
import org.embl.mobie.lib.bdv.ScreenShotMaker;
import org.embl.mobie.lib.align.SIFT2DAligner;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import net.imglib2.realtransform.AffineTransform3D;
import org.embl.mobie.DataStore;
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.image.Image;
import org.embl.mobie.lib.io.ImageDataInfo;
import org.embl.mobie.lib.serialize.transformation.AffineTransformation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import org.embl.mobie.MoBIESettings;
import org.embl.mobie.ProjectType;
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.bdv.BdvViewingMode;
import org.scijava.command.Command;
import org.scijava.plugin.Parameter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import org.embl.mobie.MoBIESettings;
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.io.util.IOHelper;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.hcs.OMEXMLParser;
import org.scijava.command.Command;
import org.scijava.plugin.Parameter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@
import org.embl.mobie.MoBIESettings;
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.command.SpatialCalibration;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.transform.GridType;
import org.scijava.command.Command;
import org.scijava.plugin.Parameter;
import org.scijava.plugin.Plugin;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.embl.mobie.MoBIESettings;
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.command.SpatialCalibration;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.transform.GridType;
import org.scijava.command.Command;
import org.scijava.plugin.Parameter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.embl.mobie.MoBIE;
import org.embl.mobie.MoBIESettings;
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.transform.GridType;
import org.scijava.command.Command;
import org.scijava.plugin.Parameter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import org.embl.mobie.MoBIESettings;
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.command.SpatialCalibration;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.transform.GridType;
import org.scijava.command.Command;
import org.scijava.plugin.Parameter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
package org.embl.mobie.command.open.project;

import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.ThreadHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.util.ThreadHelper;
import org.embl.mobie.lib.bdv.view.SliceViewer;
import org.scijava.command.Command;
import org.scijava.plugin.Parameter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import org.embl.mobie.MoBIESettings;
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.command.SpatialCalibration;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.transform.GridType;
import org.scijava.ItemVisibility;
import org.scijava.command.Command;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.io.imagedata.ImageData;
import org.embl.mobie.io.imagedata.ImagePlusImageData;
import org.embl.mobie.lib.ThreadHelper;
import org.embl.mobie.lib.util.ThreadHelper;
import org.scijava.command.Command;
import org.scijava.plugin.Parameter;
import org.scijava.plugin.Plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.embl.mobie.command.CommandConstants;
import org.embl.mobie.io.imagedata.ImageData;
import org.embl.mobie.io.imagedata.ImagePlusImageData;
import org.embl.mobie.lib.ThreadHelper;
import org.embl.mobie.lib.util.ThreadHelper;
import org.embl.mobie.lib.io.StorageLocation;
import org.embl.mobie.lib.table.TableDataFormat;
import org.scijava.Initializable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import bdv.util.BdvHandle;
import bdv.viewer.SourceAndConverter;
import org.embl.mobie.MoBIE;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.jetbrains.annotations.NotNull;
import org.scijava.Priority;
import org.scijava.plugin.Plugin;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/embl/mobie/lib/ImageDataAdder.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.embl.mobie.lib.serialize.display.ImageDisplay;
import org.embl.mobie.lib.serialize.display.SegmentationDisplay;
import org.embl.mobie.lib.table.TableDataFormat;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.janelia.saalfeldlab.n5.universe.metadata.canonical.CanonicalDatasetMetadata;

import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@
import org.embl.mobie.lib.data.ImageGridSources;
import org.embl.mobie.lib.data.LabelGridSources;
import org.embl.mobie.lib.io.TableImageSource;
import org.embl.mobie.lib.table.ColumnNames;
import org.embl.mobie.lib.table.columns.ColumnNames;
import org.embl.mobie.lib.table.saw.Aggregators;
import org.embl.mobie.lib.table.saw.TableOpener;
import org.embl.mobie.lib.transform.GridType;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.util.ThreadHelper;
import tech.tablesaw.api.NumberColumn;
import tech.tablesaw.api.StringColumn;
import tech.tablesaw.api.Table;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import bdv.util.AxisOrder;
import bdv.util.BdvOptions;
import bdv.viewer.render.AccumulateProjectorFactory;
import org.embl.mobie.lib.ThreadHelper;
import org.embl.mobie.lib.util.ThreadHelper;
import org.embl.mobie.lib.bdv.blend.AccumulateAlphaBlendingProjectorARGBFactory;
import net.imglib2.type.numeric.ARGBType;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/embl/mobie/lib/bdv/ScreenShotMaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
import net.imglib2.type.Type;
import net.imglib2.type.logic.BitType;
import net.imglib2.type.numeric.real.FloatType;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.ThreadHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.util.ThreadHelper;
import org.embl.mobie.lib.annotation.Annotation;
import org.embl.mobie.lib.bdv.blend.AccumulateAlphaBlendingProjectorARGB;
import net.imglib2.algorithm.util.Grids;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ private void updateOverlayItems( Graphics2D g )

FinalRealInterval viewerInterval = BdvHandleHelper.getViewerGlobalBoundingInterval( bdvHandle );


final Set< SourceAndConverter< ? > > sourceAndConverters = viewerState.getVisibleAndPresentSources();

for ( final SourceAndConverter< ? > sourceAndConverter : sourceAndConverters )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ private void configureRendering( SourceAndConverter< ? > sourceAndConverter )
final String someRegion = display.sources.keySet().iterator().next();
final String someSource = display.sources.get( someRegion ).get( 0 );
final RealMaskRealInterval mask = DataStore.getImage( someSource ).getMask();
final double width = mask.realMax( 0 ) - mask.realMin( 0 );
double width = mask.realMax( 0 ) - mask.realMin( 0 );
width = Math.min( width, mask.realMax( 1 ) - mask.realMin( 1 ) );
boundaryThickness = width * boundaryThickness;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
package org.embl.mobie.lib.create;

import de.embl.cba.tables.color.ColoringLuts;
import org.embl.mobie.lib.table.ColumnNames;
import org.embl.mobie.lib.table.columns.ColumnNames;
import org.embl.mobie.lib.serialize.display.ImageDisplay;
import org.embl.mobie.lib.serialize.display.SegmentationDisplay;
import org.embl.mobie.lib.serialize.display.Display;
Expand All @@ -48,7 +48,6 @@

import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/embl/mobie/lib/create/ProjectCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@
package org.embl.mobie.lib.create;

import mpicbg.spim.data.SpimDataException;
import net.imagej.patcher.LegacyInjector;
import org.embl.mobie.io.ImageDataFormat;
import org.embl.mobie.io.util.IOHelper;
import org.embl.mobie.lib.MoBIEHelper;
import org.embl.mobie.lib.util.MoBIEHelper;
import org.embl.mobie.lib.serialize.*;

import java.io.File;
Expand Down
Loading

0 comments on commit a0f972b

Please sign in to comment.