diff --git a/render-app/src/main/java/org/janelia/alignment/spec/TransformSpecMetaData.java b/render-app/src/main/java/org/janelia/alignment/spec/TransformSpecMetaData.java index 6598a3cf1..a25458f0a 100644 --- a/render-app/src/main/java/org/janelia/alignment/spec/TransformSpecMetaData.java +++ b/render-app/src/main/java/org/janelia/alignment/spec/TransformSpecMetaData.java @@ -15,6 +15,9 @@ public class TransformSpecMetaData implements Serializable { /** The default label for a lens correction transform. */ public static final String LENS_CORRECTION_LABEL = "lens"; + /** Indicates that the transform should be included when rendering tiles for point match derivation. */ + public static final String INCLUDE_LABEL = "include"; + private Set labels; public TransformSpecMetaData() { diff --git a/render-ws/src/main/java/org/janelia/render/service/TileDataService.java b/render-ws/src/main/java/org/janelia/render/service/TileDataService.java index 5db7c479d..9aac5e25b 100644 --- a/render-ws/src/main/java/org/janelia/render/service/TileDataService.java +++ b/render-ws/src/main/java/org/janelia/render/service/TileDataService.java @@ -1,7 +1,8 @@ package org.janelia.render.service; import java.net.UnknownHostException; -import java.util.Collections; +import java.util.Arrays; +import java.util.HashSet; import java.util.Map; import java.util.Set; @@ -331,10 +332,13 @@ static RenderParameters getCoreTileRenderParameters(final Integer xOffset, } else if (useLegacyNormalization) { - if (tileSpec.hasTransformWithLabel(TransformSpecMetaData.LENS_CORRECTION_LABEL)) { + if (tileSpec.hasTransformWithLabel(TransformSpecMetaData.LENS_CORRECTION_LABEL) || + tileSpec.hasTransformWithLabel(TransformSpecMetaData.INCLUDE_LABEL)) { // Handle a legacy client request for a stack that has labelled transforms ... - tileSpec.flattenAndFilterTransforms(null, EXCLUDE_AFTER_LENS, null); + tileSpec.flattenAndFilterTransforms(null, + EXCLUDE_AFTER_LENS_OR_INCLUDE, + null); } else { @@ -457,6 +461,7 @@ private RenderParameters getRawTileRenderParameters(final String owner, private static final Logger LOG = LoggerFactory.getLogger(TileDataService.class); - private static final Set EXCLUDE_AFTER_LENS = - Collections.singleton(TransformSpecMetaData.LENS_CORRECTION_LABEL); + private static final Set EXCLUDE_AFTER_LENS_OR_INCLUDE = + new HashSet<>(Arrays.asList(TransformSpecMetaData.LENS_CORRECTION_LABEL, + TransformSpecMetaData.INCLUDE_LABEL)); }