Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
3 posts
|
I'm trying to bland two images while varying the weight for each over the image, so that some regions are all from the lower image while other regions are form the upper image and a gradient blend in-between. Any suggestions on how to approach this. My images are all gray scale 8-bit.
I found a plugin called Alpha_Channel at http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:alpha_channel:start This appears to do exactly what I want but I can not get it to compile and run on Fiji 1.47o on a Mac. I have placed the file into the plug-ins folder inside Fiji and restarted Fiji and run the Plugins: Compile and Run… command but I get an error that have have added below. I found an old message on this list serve suggesting to make sure the java file is properly capitalize "Alpha_Channel.java" but that did not help. Any suggestions on how to approach this or how to get this plug-in to work would be greatly appreciated. By the way I'm very comfortable with Fiji's Macro language but I am a novice when it comes to Java and plug-ins. Thanks for any Help Ron Error message when attempting to "Compile and Run…" Alpha_Channel.java /Applications/Fiji.app/plugins/Alpha_Channel.java:54: error while writing Alpha_Channel: /Applications/Fiji.app/plugins/Alpha_Channel.class (Permission denied) public class Alpha_Channel implements ExtendedPlugInFilter, DialogListener { ^ Note: /Applications/Fiji.app/plugins/Alpha_Channel.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Applications/Fiji.app/plugins/Alpha_Channel.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
2136 posts
|
Hi Ron,
you can try downloading the new version of Alpha Channel (created a few minutes ago). It does not use a deprecated API method any more and also uses Generics to avoid the 'unchecked or unsafe operations' error. Nevertheless, I don't know why Fiji prevents you from compiling it; I have never seen such restrictions with standard ImageJ. There is a lot of old ImageJ code around that uses deprecated API calls and unchecked operations... Michael ________________________________________________________________ On Jun 24, 2013, at 21:03, Ron Paletzki wrote: > I'm trying to bland two images while varying the weight for each over the image, so that some regions are all from the lower image while other regions are form the upper image and a gradient blend in-between. Any suggestions on how to approach this. My images are all gray scale 8-bit. > > I found a plugin called Alpha_Channel at http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:alpha_channel:start > This appears to do exactly what I want but I can not get it to compile and run on Fiji 1.47o on a Mac. I have placed the file into the plug-ins folder inside Fiji and restarted Fiji and run the Plugins: Compile and Run… command but I get an error that have have added below. I found an old message on this list serve suggesting to make sure the java file is properly capitalize "Alpha_Channel.java" but that did not help. > > Any suggestions on how to approach this or how to get this plug-in to work would be greatly appreciated. By the way I'm very comfortable with Fiji's Macro language but I am a novice when it comes to Java and plug-ins. > > Thanks for any Help > Ron > > Error message when attempting to "Compile and Run…" Alpha_Channel.java > > /Applications/Fiji.app/plugins/Alpha_Channel.java:54: error while writing Alpha_Channel: /Applications/Fiji.app/plugins/Alpha_Channel.class (Permission denied) > public class Alpha_Channel implements ExtendedPlugInFilter, DialogListener { > ^ > Note: /Applications/Fiji.app/plugins/Alpha_Channel.java uses or overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Note: /Applications/Fiji.app/plugins/Alpha_Channel.java uses unchecked or unsafe operations. > Note: Recompile with -Xlint:unchecked for details. > 1 error > > > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html ... [show rest of quote] -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
1631 posts
|
In reply to this post by Ron Paletzki
Hi Ron,
On Mon, 24 Jun 2013, Ron Paletzki wrote: > Error message when attempting to "Compile and Run…" Alpha_Channel.java > > /Applications/Fiji.app/plugins/Alpha_Channel.java:54: error while writing Alpha_Channel: /Applications/Fiji.app/plugins/Alpha_Channel.class (Permission denied) Looks like the acccount that runs Fiji cannot write to that location. Tip: you can Compile and Run .java files outside Fiji.app/, say, in your Documents. Ciao, Johannes -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
3 posts
|
Thanks Johannes, compiling outside the Fiji folder worked. Need to check the permissions on my computer.
Ron On Jun 25, 2013, at 1:10 PM, Johannes Schindelin <[hidden email]> wrote: > Hi Ron, > > On Mon, 24 Jun 2013, Ron Paletzki wrote: > >> Error message when attempting to "Compile and Run…" Alpha_Channel.java >> >> /Applications/Fiji.app/plugins/Alpha_Channel.java:54: error while writing Alpha_Channel: /Applications/Fiji.app/plugins/Alpha_Channel.class (Permission denied) > > Looks like the acccount that runs Fiji cannot write to that location. Tip: > you can Compile and Run .java files outside Fiji.app/, say, in your > Documents. > > Ciao, > Johannes ... [show rest of quote] -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Disable Popup Ads | Edit this page |