This file contains 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
public T getValidateDefault(String parameter, Predicate<T> validator, T defaultValue) { | |
return getOptional(parameter).filter(validator) | |
.map(x -> { | |
allDefault = false; | |
return x; | |
}).orElse(defaultValue); | |
} |
This file contains 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
#@ File(styles="both") root | |
#@ String(value="/") datasetPath | |
/* | |
* If you used Fiji to export a multi-scale image with N5Viewer metadata using average downsampling | |
* between approximately March 13 and April 15 2024, the translation metadata may be incorrect. | |
* | |
* Running this script will correct the metadata. | |
* | |
* John Bogovic |
This file contains 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
#@ File(styles="both") root | |
#@ String(value="/") datasetPath | |
/* | |
* If you used Fiji to export a multi-scale an image with COSEM metadata using average downsampling | |
* between approximately March 13 and April 15 2024, the translation metadata may be incorrect. | |
* | |
* Running this script will correct the metadata. | |
* | |
* John Bogovic |
This file contains 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
#@ File(styles="both") root | |
#@ String(value="/") datasetPath | |
/* | |
* If you used Fiji to export a multi-scale OME-Zarr image using average downsampling | |
* between approximately March 13 and April 15 2024, the translation metadata may be incorrect. | |
* | |
* Running this script will correct the metadata. | |
* | |
* John Bogovic |
This file contains 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); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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 | |
*/ |
NewerOlder