5757public abstract class AbstractColocalisationTest extends AbstractOpTest {
5858
5959 // images and meta data for zero correlation
60- private Img <UnsignedByteType > zeroCorrelationImageCh1 ;
61- private Img <UnsignedByteType > zeroCorrelationImageCh2 ;
60+ private static Img <UnsignedByteType > zeroCorrelationImageCh1 ;
61+ private static Img <UnsignedByteType > zeroCorrelationImageCh2 ;
6262
6363 // images and meta data for positive correlation test
6464 // and real noisy image Manders' coeff with mask test
65- private Img <UnsignedByteType > positiveCorrelationImageCh1 ;
66- private Img <UnsignedByteType > positiveCorrelationImageCh2 ;
65+ private static Img <UnsignedByteType > positiveCorrelationImageCh1 ;
66+ private static Img <UnsignedByteType > positiveCorrelationImageCh2 ;
6767
6868 protected static OpBuilder op (String name ) {
6969 return ops .op (name );
7070 }
7171
72- protected Img <UnsignedByteType > getZeroCorrelationImageCh1 () {
72+ protected static Img <UnsignedByteType > getZeroCorrelationImageCh1 () {
7373 if (zeroCorrelationImageCh1 == null ) {
7474 zeroCorrelationImageCh1 = loadTiffFromJar ("greenZstack.tif" );
7575 }
7676 return zeroCorrelationImageCh1 ;
7777 }
7878
79- protected Img <UnsignedByteType > getZeroCorrelationImageCh2 () {
79+ protected static Img <UnsignedByteType > getZeroCorrelationImageCh2 () {
8080 if (zeroCorrelationImageCh2 == null ) {
8181 zeroCorrelationImageCh2 = loadTiffFromJar ("redZstack.tif" );
8282 }
8383 return zeroCorrelationImageCh2 ;
8484 }
8585
86- protected Img <UnsignedByteType > getPositiveCorrelationImageCh1 () {
86+ protected static Img <UnsignedByteType > getPositiveCorrelationImageCh1 () {
8787 if (positiveCorrelationImageCh1 == null ) {
8888 positiveCorrelationImageCh1 = loadTiffFromJar ("colocsample1b-green.tif" );
8989 }
9090 return positiveCorrelationImageCh1 ;
9191 }
9292
93- protected Img <UnsignedByteType > getPositiveCorrelationImageCh2 () {
93+ protected static Img <UnsignedByteType > getPositiveCorrelationImageCh2 () {
9494 if (positiveCorrelationImageCh2 == null ) {
9595 positiveCorrelationImageCh2 = loadTiffFromJar ("colocsample1b-red.tif" );
9696 }
@@ -107,7 +107,7 @@ protected Img<UnsignedByteType> getPositiveCorrelationImageCh2() {
107107 * @param relPath The relative path to the Tiff file.
108108 * @return The file as ImgLib image.
109109 */
110- private <T extends RealType <T > & NativeType <T >> Img <T > loadTiffFromJar (
110+ private static <T extends RealType <T > & NativeType <T >> Img <T > loadTiffFromJar (
111111 final String relPath )
112112 {
113113// InputStream is = TestImageAccessor.class.getResourceAsStream(relPath);
0 commit comments