Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-22-2008, 07:45 PM
Member
 
Join Date: Nov 2007
Posts: 13
shaungoater is on a distinguished road
Advice on best method for....
i am working on a program to analyze images and then use this to find similar images etc. I want to break the image down into a 3*3 grid then within each section 3*3 again. Would it be best to have a method to break the image down to the first 9 parts and then use recursion to call the method again for each of the 9 parts (would this cause difficulty's in storing the data?). Or would it be better to write methods to retrieve data for all 81 parts at the lowest level then combine the low level data to get data on the larger sections. nb i want to store rgb info for the 9 parts and the 9 parts within each of the original parts of the 3*3 grid. Any help is much appreciated.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-23-2008, 08:36 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 571
Nicholas Jordan is on a distinguished road
Look in the tips.
I just saw a workup in the tips yesterday, there seems to be a slew of them posted all at once. The tip shows how to getBytes() for a graphic. We then have a Algorithmic challenge on how the [][] is split. My first idea is to test if (([].size() % 3)!= 0x0000)

That is to determine if there is a partial to be fitted into a modular three. The next thing that comes to mind is that if we want to get to 3x3 every time, we just divide by 3 to get a row and column count. Additionally, from experience - either check for zero before divide or trap it with exception handling. You may assign a default value in the catch if that is easier than dealing with help department:

catch( divide by zero ){ int val = saneDefault;}

Program will then continue to run minus weekend ruiners.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need some advice and tips about my code... sukatoa Advanced Java 3 06-23-2008 08:29 PM
Method Help pringle New To Java 4 04-16-2008 02:23 PM
Want Some Expert Advice? JAX India 2008 Might Be the Right Place james Java Announcements 2 03-03-2008 09:05 PM
Prerequisite advice needed Hatrabbit New To Java 2 11-30-2007 05:38 PM
method not abstract, does not override actionperformed method. Theman New To Java 1 05-08-2007 07:13 AM


All times are GMT +3. The time now is 05:58 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org