The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
How to open or read tiff color image?
icsdm417012
Member Posts: 7 Learner I
Hey there! I am very new to Rapidminer. When I try to open tiff color image and press the button "start the execution" I get this message :
Process failed access denied ("java.lang.RuntimePermission" "exitVM.0")
Exception: java.security.AccessControlException
Message: access denied ("java.lang.RuntimePermission" "exitVM.0")
Stack trace:
java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
java.security.AccessController.checkPermission(AccessController.java:884)
java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
com.rapidminer.security.PluginSecurityManager.checkPermission(PluginSecurityManager.java:42)
java.lang.SecurityManager.checkExit(SecurityManager.java:761)
java.lang.Runtime.exit(Runtime.java:107)
java.lang.System.exit(System.java:971)
ij.IJ.getImage(IJ.java:1282)
cz.vutbr.feec.imageprocessing.op.readWrite.BaseReadImageOperator.readImage(BaseReadImageOperator.java:92)
cz.vutbr.feec.imageprocessing.op.readWrite.ReadColorImageOperator.doWork(ReadColorImageOperator.java:52)
com.rapidminer.operator.Operator.execute(Operator.java:1025)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:428)
com.rapidminer.operator.Operator.execute(Operator.java:1025)
com.rapidminer.Process.execute(Process.java:1322)
com.rapidminer.Process.run(Process.java:1297)
com.rapidminer.Process.run(Process.java:1183)
com.rapidminer.Process.run(Process.java:1136)
com.rapidminer.Process.run(Process.java:1131)
com.rapidminer.Process.run(Process.java:1121)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)
Ι would appreciate the help.
Thank you
0
Best Answers
-
MartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data ScientistHi,
which operator are you using? This looks like something you wrote on your own?
Best,
Martin- Sr. Director Data Solutions, Altair RapidMiner -
Dortmund, Germany5 -
sgenzer Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Managerah. Please note that the Image Mining extension is VERY OLD and full of bugs.
Scott
5 -
sgenzer Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community ManagerI would use an external API such as Google Cloud Vision.5
-
rfuentealba RapidMiner Certified Analyst, Member, University Professor Posts: 568 UnicornHello, @icsdm417012
If you don't want to use an API (and there are plenty of reasons you might not want to do that), you can use the Execute Python operator (it's on the Python Scripting Extension). With the Anaconda Python Distribution, you can use matplotlib to read the TIFF file which conveniently obtains the values in a numpy array suitable to do your calculations.
This piece of code can be a good start. Like the old good Dijkstra says, I only have proven that this piece of code works but haven't executed it. I don't want to take the joy of experimenting from you, so maybe try it!np.int_(data[1:,1:], index=data[1:,0], columns=data[0,1:]) return df import numpy import pandas import matplotlib.pyplot as plt def rm_init(imgdata): my_image = plt.imread(tiff_file) df = pd.DataFrame(data=
5
Answers