Tuesday, July 24, 2012

Useful Image Processing Tutorial Web Sites

Here is a short list of useful links for image processing that I have found over the last few years. Although most use Photoshop, you can still learn from them and apply the same principles using other software.
The first couple links aren't about image processing but I feel it necessary to learn much of the information contained within them to get a better understanding of Digital Photography.


This last one is for a (DDP) Digital Development Processing Sharpening technique used for the processing of individual Color Channels before colorizing and combining. However I have found the technique to be useful for much more.

Saturday, June 30, 2012

Increasing Heap Memory Size (Maximum allocation) in Weka



During my PhD work, i needed to use weka to testing SVM classifier for texture classification. In Weka, we can easily play with different parameters and do testing faster. Initially i was facing a problem with Heap memory allocation in Java for Weka. For large datasets it was crashing a lot and sending me a notice that Heap memory size exceeded. Normally 216 MB memory is allocated as heap memory which can be very easily increased if we know the way. I had to spend 2 days looking for this solution.  Here i would like to share it with you.

1. After the weka software being installed in the computer, we need to go to the program files where the installed files are present. for example in my case, it is \\

    C:\Program Files\Weka-3-7

    In most of the computers with Windows operating system, it is like this.


2. Then we can open the RunWeka.ini file as text file and look for the maxheap value mentioned. The above picture shows how it looks in my computer. I have changed the value from 256m to 4096m. Here we can not directly mention in GB, rather mention in MB (in this case m). Also after changing we need to save the file and restart the weka again. to save changes in any file in the windows program files we need to have the administrative account. 

3. To enable built-in Administrator Account, First you’ll need to open a command prompt in administrator mode by right-clicking and choosing “Run as administrator” (or use the Ctrl+Shift+Enter shortcut from the search box)



     Now type the following command:

     net user administrator /active:yes



4. You should see a message that the command completed successfully. Log out, and you’ll now see the     
Administrator account as a choice. (Note that the screenshots are from Vista, but this works on Windows 7). You’ll note that there’s no password for this account, so if you want to leave it enabled you should change the password.


Also to know more about Heap memory , here is a very nice link

Information on Java Heap Memory allocation

I hope this would be helpful for at least some of you. if you have any comments of suggestions please let me know by your valuable comments.