Posted by
Michael Schmid on
Jun 25, 2013; 12:48pm
URL: http://imagej.273.s1.nabble.com/Selectively-blending-image-regions-tp5003621p5003622.html
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--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html