RetouchPRO

Welcome to RetouchPRO, the web community for retouchers.

You are currently viewing as an unregistered guest which gives you limited access. Registration is fast, simple and absolutely free so please, join RetouchPRO today!

If you have any problems with the registration process or your account login, please contact us. If you've forgotten your password, click here.

Go Back   RetouchPRO > Tools > Software
Register Blogs FAQ Search Today's Posts Mark Forums Read

Software Photoshop, Paintshop Pro, Painter, etc., and all their various plugins. Of course, you can also discuss all other programs, as well.

Reply
 
LinkBack Thread Tools
  #1  
Old 10-28-2005, 12:31 PM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,112
Java Class Files ???

Hi Everyone.

I have found some software/Filters that I wanted to try. It downloaded as a .tar.gz file and said it was a Java file.

I’ve extracted the files and now I have a bunch of *.class files.

Can anyone please tell me what to do with these files?
I have a PC with Java installed.

Thanks.

Ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #2  
Old 10-28-2005, 05:48 PM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 5,586
Quote:
Originally Posted by Cameraken
Hi Everyone.

I have found some software/Filters that I wanted to try. It downloaded as a .tar.gz file and said it was a Java file.

I’ve extracted the files and now I have a bunch of *.class files.

Can anyone please tell me what to do with these files?
I have a PC with Java installed.

Thanks.

Ken
Ken:

In case no one else replies with a definitive answer, check out this site: http://www.ps-scripts.com

Some folks who are very knowledgeable in this area hang out there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #3  
Old 10-28-2005, 06:22 PM
kschulz's Avatar
Senior Member
 
Join Date: Oct 2004
Location: Cincinnati, Ohio
Posts: 138
Hi Ken,

Class files are generated by a Java compiler after it has processed Java source code files. Class files can be loaded and executed by a Java Virtual Machine (JVM). You can download and install a JVM for Windows (the Java Runtime Environment) from Sun Microsystems at:

http://www.java.com/en/download/manual.jsp

If you already have Java installed on your PC, look for java.exe which is the bytecode (class file) interpreter. It's been a while since I've ventured into Java land, but I believe you can run your classes by executing the Java interpreter from a command line prompt.

You might want to try going to a command line prompt and type "java <enter>" - if the interpreter is found it will print out a list of the command line arguments it supports. The simplest syntax for running a class is something like:

java filename ("filename" = your class file, without the extension)

Sun's web site has tons of info. Hope this helps.

- Kurt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #4  
Old 10-29-2005, 02:14 PM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,112
Thanks for your help. But I’ve not got much closer.

Danny. Your link suggests that these files are Photoshop script files.
I found that I had to download the Scripting Plug-In from Adobe as it is not installed in PS7 by default as it is in CS. (I’ve done that)

However the scripts need to be in *.js format not *.class format. And I can’t see the answer at PC-Scripts.com.
JS files seem to be text files where these class files are not.

Kurt.
I found java.exe in the jre folder but when I run it I get a DOS box but it closes immediately

I am attaching the link. I think you may both be interested in this as well. I hope it entices you into taking another look at this. It uses Strassmanns algorithm. And segmentation.

http://www.cs.utah.edu/npr/ArtisticVision/


Thanks for your help

Ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #5  
Old 10-29-2005, 06:59 PM
realaqu's Avatar
Senior Member
 
Join Date: Feb 2005
Posts: 106
hi, Ken

I think you have to run this class in this way, it may need some arguements, try(assume the class name is Artsomething.class)

java Artsomething example.jpg

good luck

realaqu
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #6  
Old 10-30-2005, 12:18 AM
kschulz's Avatar
Senior Member
 
Join Date: Oct 2004
Location: Cincinnati, Ohio
Posts: 138
Ken,

Very intriguing link! Unfortunately they provide only the compiled class files - it would be nice to see the actual algorithms in the source code.

Ok, I'm guessing you were trying to run Java using the Windows Run... command. Doing so would open up a command window and then close immediately as you describe. Try the following instead, paying attention to upper and lower case:

1) Extract your class files to a folder (for example "c:\temp")

2) Copy a small jpg file to c:\temp for test purposes. I used a 320x240 sized file since my first attempt with a very large jpg image failed.

3) Using the Windows Run... command, type "cmd" then enter. This will open up a DOS command window.

4) At the command prompt, type "cd \temp" then press the ENTER key.

5) Type "set CLASSPATH=c:\temp" then ENTER.

6) Type "java Artistic_Vision" then ENTER. This will launch the program and give you two Windows as shown in the attached screen caps.

7) Use the File menu to load your test jpg image. It should appear in the Window titled "Picture".

8) Use the Tools and Stereo menus to play with it.

Good luck with it. Time for me to play with it more...

- Kurt
Attached Images
File Type: jpg scrncap-0.jpg (56.9 KB, 2 views)
File Type: jpg scrncap-1.jpg (67.4 KB, 6 views)
File Type: jpg scrncap-2.jpg (67.6 KB, 3 views)
File Type: jpg scrncap-3.jpg (83.6 KB, 3 views)

Last edited by kschulz : 10-30-2005 at 12:28 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #7  
Old 10-30-2005, 12:40 AM
kschulz's Avatar
Senior Member
 
Join Date: Oct 2004
Location: Cincinnati, Ohio
Posts: 138
Hmm, looks like 192x166 is the largest image area it will work with. Still very cool...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #8  
Old 10-30-2005, 04:08 AM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,112
Kurt.

Thank You So Much.

You got it working.

Unfortunately, as you say, It will only take a small picture and there is no save.

Here I reduced the picture. Applied Artistic_Vision then took a Snapshot
I loaded it back into Photoshop and enlarged it up, then merged it back into the original.
Unfortunately the brush strokes are blurring.

However this is really interesting. Makes you wonder why this algorithm is not in any commercial software.

Perhaps We could persuade Doug or Danny to email Bruce and see if he has taken this any further.

Thanks again for your help.

Ken
Attached Images
File Type: jpg Portrait-Bara_AV.jpg (99.3 KB, 10 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #9  
Old 10-30-2005, 05:03 AM
Doug Nelson's Avatar
Janitor
 
Join Date: Aug 2001
Posts: 3,864
Blog Entries: 20
I think your request would mean more than mine, since you've actually tried it. Just email him this thread URL.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #10  
Old 10-30-2005, 07:24 AM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,112
'email him this thread URL'
Great Idea Doug. I’ll Do that.

I’ve created a Bat file to save the typing.

Open Notepad
Paste this in

cd \temp
set CLASSPATH=c:\temp
java Artistic_Vision

Then save on the desktop as ArtisticVision.BAT
This will work with Kurt’s Suggested Directory.


Ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #11  
Old 10-30-2005, 08:24 AM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,112
Kurt. Are you on a MAC? Your display is different to mine. You have got Stereo and I have got Underpainting and Artifact Level (in V1.2)

Ken
Attached Images
File Type: jpg All.jpg (75.6 KB, 2 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #12  
Old 10-30-2005, 08:57 AM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,112
Email Sent

bgooch *at* cs.utah.edu
Re Artistic Vision.

Dear Bruce

I am a member of RetouchPro. A forum interested in PhotoArt and we have seen the interesting work you have done on brush strokes.
We have started a thread to discuss your work I am sending you a link to the thread hoping that you may wish to comment or contribute to the discussion.
Maybe you could tell us if any further development is planned.

http://www.retouchpro.com/forums/sho...972#post103972

Looking forward to hearing from you.

Ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #13  
Old 10-30-2005, 11:27 AM
kschulz's Avatar
Senior Member
 
Join Date: Oct 2004
Location: Cincinnati, Ohio
Posts: 138
Ken, I'm on a PC running Win XP but I must have a different version of the program. At first I couldn't access the link you provided (I think their server was down last night) so I googled "Strassmanns algorithm" and found the Java classes on another site: http://www.cs.unc.edu/~coombe/comp256/

- Kurt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #14  
Old 10-30-2005, 06:18 PM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,112
Kurt. I’m glad that my link did not work because you found a newer version. All the files in the tar.gz are dated 2000. The files in your link are dated 2001 and there is a vast improvement in quality.

I’m not sure what happened with my last test, but it processed a larger image. I opened ‘almost a painting’ and the little picture box became almost full screen and the program processed the whole image. So maybe there is a bug or maybe it will do bigger file sizes.

Ken
Attached Images
File Type: jpg Ken_Almost_VP.jpg (98.5 KB, 8 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #15  
Old 10-31-2005, 07:40 AM
kschulz's Avatar
Senior Member
 
Join Date: Oct 2004
Location: Cincinnati, Ohio
Posts: 138
I played around with varying file sizes (multiples of 192 and 166, etc) and couldn't get any to fully load. I downloaded "almost a painting" - lo and behold it loaded! Afterwards, I was able to load my other test files! There's a bug lurking there somewhere.

Attached is an example of one of my test pics. I'm finding that it seems to work best with nature scenes rather than portraits.

I'll play with it more to see if I can find what the magic is for loading files.

- Kurt
Attached Images
File Type: jpg PICT0057.jpg (98.4 KB, 3 views)
File Type: jpg PICT0057_AV.jpg (92.9 KB, 5 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
jpeg files 00110 Input/Output/Workflow 2 09-13-2006 07:56 PM
Panorama Maker and Canon CS2 Files mikelouw Software 0 07-03-2006 02:06 PM
Java & PHP jeaniesa Your Website 8 01-18-2003 04:00 PM
Online Class Doug Nelson Website Feedback 0 08-08-2001 12:03 PM


All times are GMT -6. The time now is 07:25 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 Doug Nelson. All Rights Reserved moo




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50