Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • bia/icy/extensions/color-picker-threshold
1 result
Show changes
Commits on Source (2)
......@@ -6,12 +6,12 @@
<parent>
<groupId>org.bioimageanalysis.icy</groupId>
<artifactId>parent-pom-plugin</artifactId>
<version>1.0.8</version>
<artifactId>pom-icy</artifactId>
<version>2.1.5</version>
</parent>
<artifactId>color-picker-threshold</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<packaging>jar</packaging>
......@@ -22,19 +22,10 @@
– positive and negative colors selection and SVM learning
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.bioimageanalysis.icy</groupId>
<artifactId>nherve-toolbox</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
......
......@@ -499,7 +499,7 @@ public class ColorPickerThreshold extends PainterManagerSingletonPlugin<ColorPic
private int[] getClickedColor(Point pt) throws SignatureException {
IcyBufferedImage image = getCurrentSequence().getFirstImage();
int[] c = null;
if (image.isInside(pt)) {
if ((image != null) && image.isInside(pt)) {
int x = (int) pt.getX();
int y = (int) pt.getY();
c = ColorSpaceTools.getColorComponentsI_0_255(image, ColorSpaceTools.RGB, x, y);
......