Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

1. ## need java code for Wavelet-based Color Histogram,please help

Step1: Extract the Red, Green, and Blue Components from an image.
Step2: Decompose each Red, Green, Blue Component using Haar Wavelet transformation at 1st
level to get approximate
coefficient and vertical, horizontal detail coefficients.
Step3: Combine approximate coefficient of Red, Green, and Blue Component.
Step4: Similarly combine the horizontal and vertical coefficients of Red, Green, and Blue Component.
Step5: Assign the weights 0.003 to approximate coefficients, 0.001 to horizontal and 0.001 to vertical coefficients
(experimentally observed values).
Step6: Convert the approximate, horizontal and vertical coefficients into HSV plane.
Step7: Color quantization is carried out using color histogram by assigning 8 level each to hue, saturation and value to give a
quantized HSV space with 8x8x8=512 histogram bins.
Step8: The normalized histogram is obtained by dividing with the total number of pixels.
Step9: Repeat step1 to step8 on an image in the database.
Step 10: Apply K-means algorithm to obtain group of cluster of feature vectors.
Step 11: Then hierarchical index will be firstly established by Hierarchical clustering algorithm on the results of previous
step, and then retrieval will be done based on the indexing. We use the Euclidean distance formula as similarity
measurement

2. ## Re: need java code for Wavelet-based Color Histogram,please help

Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

We don't give code, but we'll help you with yours. What have you tried? Post what you've done and then ask specific questions about your code.