This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ DatasetService ds | |
#@ UIService ui | |
#@ Long radius = 13 | |
#@ String (choices={"Diamond", "Hypersphere"}, style="listBox") shapeType | |
/* | |
* Displays a Diamond or Hypersphere neighborhood for a given radius | |
*/ | |
if( shapeType.equals("Diamond")) | |
shp = new DiamondShape(radius); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.janelia.saalfeldlab.n5.generateExamples; | |
import org.janelia.saalfeldlab.n5.Bzip2Compression; | |
import org.janelia.saalfeldlab.n5.Compression; | |
import org.janelia.saalfeldlab.n5.GzipCompression; | |
import org.janelia.saalfeldlab.n5.Lz4Compression; | |
import org.janelia.saalfeldlab.n5.N5Writer; | |
import org.janelia.saalfeldlab.n5.RawCompression; | |
import org.janelia.saalfeldlab.n5.XzCompression; | |
import org.janelia.saalfeldlab.n5.blosc.BloscCompression; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.amazonaws.auth.AWSCredentials; | |
import com.amazonaws.auth.AWSStaticCredentialsProvider; | |
import com.amazonaws.auth.AnonymousAWSCredentials; | |
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; | |
import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration; | |
import com.amazonaws.services.s3.AmazonS3; | |
import com.amazonaws.services.s3.AmazonS3ClientBuilder; | |
import com.amazonaws.services.s3.model.ListObjectsV2Request; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ Dataset img | |
/** | |
* Perform an operation on every row of the input image. | |
* | |
* This sets every pixel in the first row to have value zero, | |
* the second row will have value one, etc. | |
* | |
* https://forum.image.sc/t/best-way-to-iterate-over-columns-rows/82472 | |
*/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ Dataset da | |
#@ Dataset db | |
dap = Views.moveAxis( da, 2, 0 ); | |
dbp = Views.moveAxis( da, 2, 0 ); | |
spacing = [1, 1, 1] as double[]; | |
dfA = new DisplacementFieldTransform( dap, spacing ); | |
dfB = new DisplacementFieldTransform( dbp, spacing ); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.