Hi I am using ImageJ for processing image in spring boot app. After calling ImageConverter.convertToGray8 it will hit Headless exception. As I intended to use this library with in rest api, there is no win feature. Here is the stack:
java.awt.HeadlessException: null
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166)
at java.desktop/java.awt.TextComponent.(TextComponent.java:150)
at java.desktop/java.awt.TextArea.(TextArea.java:261)
at java.desktop/java.awt.TextArea.(TextArea.java:165)
at ij.plugin.frame.Recorder.(Recorder.java:33)
at ij.ImagePlus.getProcessor(ImagePlus.java:986)
at ij.process.ImageConverter.convertToGray8(ImageConverter.java:29)
Hi I am using ImageJ for processing image in spring boot app. After calling ImageConverter.convertToGray8 it will hit Headless exception. As I intended to use this library with in rest api, there is no win feature. Here is the stack: java.awt.HeadlessException: null at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166) at java.desktop/java.awt.TextComponent.(TextComponent.java:150)
at java.desktop/java.awt.TextArea.(TextArea.java:261)
at java.desktop/java.awt.TextArea.(TextArea.java:165)
at ij.plugin.frame.Recorder.(Recorder.java:33)
at ij.ImagePlus.getProcessor(ImagePlus.java:986)
at ij.process.ImageConverter.convertToGray8(ImageConverter.java:29)