Skip to content

Commit

Permalink
Rename SpimDataImage to ImageDataImage
Browse files Browse the repository at this point in the history
  • Loading branch information
tischi committed Feb 25, 2024
1 parent 6acf91d commit b8aba1c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 295 deletions.
249 changes: 0 additions & 249 deletions pom.xml.releaseBackup

This file was deleted.

28 changes: 0 additions & 28 deletions release.properties

This file was deleted.

17 changes: 9 additions & 8 deletions src/main/java/org/embl/mobie/MoBIE.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
import org.embl.mobie.lib.hcs.Site;
import org.embl.mobie.lib.image.CachedCellImage;
import org.embl.mobie.lib.image.Image;
import org.embl.mobie.lib.image.SpimDataImage;
import org.embl.mobie.lib.image.ImageDataImage;
import org.embl.mobie.lib.io.DataFormats;
import org.embl.mobie.lib.io.StorageLocation;
import org.embl.mobie.plugins.platybrowser.GeneSearchCommand;
Expand Down Expand Up @@ -712,7 +712,7 @@ private void initDataSource( DataSource dataSource, String log )
{
if ( imageDataFormat.equals( ImageDataFormat.SpimData ) )
{
return new SpimDataImage<>( ( AbstractSpimData ) storageLocation.data, storageLocation.getChannel(), name, settings.values.getRemoveSpatialCalibration() );
return new ImageDataImage<>( ( AbstractSpimData ) storageLocation.data, storageLocation.getChannel(), name, settings.values.getRemoveSpatialCalibration() );
}

if ( imageDataFormat.equals( ImageDataFormat.IlastikHDF5 ) )
Expand All @@ -728,25 +728,26 @@ private void initDataSource( DataSource dataSource, String log )
{
// the whole plate is already initialised as one big SpimData
// note that channel <=> setupID
return new SpimDataImage( site.getSpimData(), site.channel, name, settings.values.getRemoveSpatialCalibration() );
return new ImageDataImage( site.getSpimData(), site.channel, name, settings.values.getRemoveSpatialCalibration() );
}

if ( site.getImageDataFormat().equals( ImageDataFormat.OmeZarr ) )
{
return new SpimDataImage( ImageDataFormat.OmeZarr, site.absolutePath, site.channel, name, ThreadHelper.sharedQueue, settings.values.getRemoveSpatialCalibration() );
return new ImageDataImage( ImageDataFormat.OmeZarr, site.absolutePath, site.channel, name, ThreadHelper.sharedQueue, settings.values.getRemoveSpatialCalibration() );
}

if ( site.getImageDataFormat().equals( ImageDataFormat.OmeZarrS3 ) )
{
return new SpimDataImage( ImageDataFormat.OmeZarrS3, site.absolutePath, site.channel, name, ThreadHelper.sharedQueue, settings.values.getRemoveSpatialCalibration() );
return new ImageDataImage( ImageDataFormat.OmeZarrS3, site.absolutePath, site.channel, name, ThreadHelper.sharedQueue, settings.values.getRemoveSpatialCalibration() );
}

return new SpimDataImage( site, name, ThreadHelper.sharedQueue, settings.values.getRemoveSpatialCalibration() );
return new ImageDataImage( site, name, ThreadHelper.sharedQueue, settings.values.getRemoveSpatialCalibration() );
}

// FIXME: The image below should not be called SpimDataImage
final String imagePath = getImageLocation( imageDataFormat, storageLocation );
final SpimDataImage spimDataImage = new SpimDataImage( imageDataFormat, imagePath, storageLocation.getChannel(), name, ThreadHelper.sharedQueue, settings.values.getRemoveSpatialCalibration() );
return spimDataImage;
final ImageDataImage imageDataImage = new ImageDataImage( imageDataFormat, imagePath, storageLocation.getChannel(), name, ThreadHelper.sharedQueue, settings.values.getRemoveSpatialCalibration() );
return imageDataImage;
}

public List< DataSource > getDataSources( Set< String > names )
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/embl/mobie/lib/bdv/ScreenShotMaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/
package org.embl.mobie.lib.bdv;

import bdv.SpimSource;
import bdv.util.BdvHandle;
import bdv.viewer.Interpolation;
import bdv.viewer.Source;
Expand Down Expand Up @@ -110,6 +111,7 @@ public Roi[] getMasks()
public void run( Double targetSamplingInXY )
{
List< SourceAndConverter< ? > > sacs = getVisibleSourceAndConverters();

run( sacs, targetSamplingInXY );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@
import ij.ImagePlus;
import ij.ImageStack;
import ij.WindowManager;
import ij.io.Opener;
import ij.plugin.FolderOpener;
import ij.process.*;
import ij.util.Tools;
import io.scif.img.IO;
import loci.formats.in.CellSensReader;
import org.embl.mobie.io.SpimDataOpener;
import org.embl.mobie.io.util.IOHelper;
import org.embl.mobie.lib.MoBIEHelper;

import java.awt.*;
import java.awt.image.ColorModel;
Expand Down
Loading

0 comments on commit b8aba1c

Please sign in to comment.