GithubHelp home page GithubHelp logo

lire's People

lire's Issues

FuzzyColorHistogram dows not implement getDoubleHistogram

FuzzyColorHistogram#getDoubleHistogram()
throws an UnsupportedOperationException.

I'd expect to return the int array.
The patch includes an additional toDoubleArray method in the serialization 
class + an implementation of getDoubleHistogram()

Original issue reported on code.google.com by franz.graf on 8 Jul 2013 at 7:01

Attachments:

Bug in de-serializing a float array

https://code.google.com/p/lire/source/browse/trunk/src/main/java/net/semanticmet
adata/lire/utils/SerializationUtils.java#245


In the 0.9.4-beta2 code, the function seems to shift the output array by 
offset, and chop off the rest of the float array at the end.

    public static float[] toFloatArray(byte[] in, int offset, int length) {
        float[] result = new float[length / 4];
        byte[] tmp = new byte[4];
        for (int i = offset; i < length / 4; i++) {
            System.arraycopy(in, (i - offset) * 4 + offset, tmp, 0, 4);
            result[i] = toFloat(tmp);
        }
        return result;
    }

For comparison, the code for converting to double array is correct:
    public static double[] toDoubleArray(byte[] data, int offset, int length) {
        double[] result = new double[length / 8];
        byte[] tmp = new byte[8];
        for (int i = 0; i < result.length; i++) {
            System.arraycopy(data, i * 8 + offset, tmp, 0, 8);
            result[i] = toDouble(tmp);
        }
        return result;
    }

Original issue reported on code.google.com by [email protected] on 12 Aug 2014 at 9:49

0.9.3_alphaissue

hi,I find that this project support lucene4.0 and the svn commit logs says 
that: sift test successfully.
so,I have a try.

I copy the src/test/java/...../lire/indexing/IndexVisualWordsTest.java  and run 
it.
but i found when the number of  images which will be indexed  are very small 
(for example , only 5 images should be indexed), then when run the code:
 -----------------
System.out.println("-< Creating SURF based histograms >--------------");
SurfFeatureHistogramBuilder surfFeatureHistogramBuilder = new 
SurfFeatureHistogramBuilder(IndexReader.open(FSDirectory.open(new 
File(index))), numSamples, clusters);
surfFeatureHistogramBuilder.index();  
---------------------
 there will be a bug:  when run k-means algorithm.
the console print:  k.getFeatureCount() = 0
 then there will be a NullPoint at:KMeans.init():
------------------------------
Set<Integer> medians = selectInitialMedians(numClusters);
Iterator<Integer> mediansIterator = medians.iterator();
------------------------------
if I debug this code, I can find that medians=null.


But when I add images to be indexed, for example 20 images, the issue will 
disappear.

Does this means surf need many images ?  and sift need more?(even though I use 
20 images to test sift algorithm, the NullPoint exception appears . )  

Original issue reported on code.google.com by [email protected] on 10 Dec 2012 at 6:20

CompactCEDDQuant returns a 144 bit descriptor instead of a 60 bit descriptor

What steps will reproduce the problem?

CEDD cedd = new CEDD();
cedd.Compact = true;
cedd.extract( ImageIO.read(new File("c://myfile.jpg")));
System.out.println(cedd.getStringRepresentation()); 

What is the expected output? What do you see instead?

desired:
cedd 60 5 3 1 3 1 0 0 0 0 0 1 2 0 0 2 0 0 0 0 0 4 6 0 3 4 0 0 0 3 0 1 3 0 1 4 0 
0 0 1 0 0 1 0 0 1 0 0 0 0 0 1 2 0 0 1 0 0 0 0 0

instead: (filling with 0s)
cedd 144 5 3 1 3 1 0 0 0 0 0 1 2 0 0 2 0 0 0 0 0 4 6 0 3 4 0 0 0 3 0 1 3 0 1 4 
0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 1 2 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


What version of the product are you using? On what operating system?
0.9.4 (trunk)

Please provide any additional information below.

If thats how it should be the tanimoto similarity is slower than having only to 
loop 60 bits

Original issue reported on code.google.com by [email protected] on 29 May 2013 at 11:38

Bug Report - Lire-0.9.4_beta - Class - ColorLayoutImpl

in function createShape()
Line 193: int[] pixel = {0, 0, 0};

If the input image with alpha channel
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
    at java.awt.image.ComponentSampleModel.getPixel(Unknown Source)
    at java.awt.image.Raster.getPixel(Unknown Source)
    at net.semanticmetadata.lire.imageanalysis.mpeg7.ColorLayoutImpl.createShape(ColorLayoutImpl.java:196)

Suggestion:
int[] pixel = {0, 0, 0, 0};

Original issue reported on code.google.com by [email protected] on 1 Aug 2013 at 2:15

java.lang.AssertionError exception when only one image in index

What steps will reproduce the problem?
1. add only one image to index with help of CEDD documentbuilder
2. search by this image (note, same image as you added to index)
3. in ImageSearchHits you will have only one record, calling hits.score(0) will 
throw java.lang.AssertionError exception

What is the expected output? What do you see instead?
expected - 0; exception instead

What version of the product are you using? On what operating system?
0.9.3, Windows 7x64

Please provide any additional information below.
I attached source files for your convenience 

thanks


Original issue reported on code.google.com by [email protected] on 13 Oct 2014 at 4:54

Attachments:

Making LireFeature interface serializable

Hi, I am using lire.jar as a library in one of my applications. I need to 
serialise some classes that contain lire classes implementing the LireFeature 
interface, but currently that is not possible because the lire classes are not 
serialisable. Could the LireFeature interface be modified to implement 
serialisable? Alternatively the individual classes implementing LireFeature 
could implement serialisable instead.

Thanks
Mike

Original issue reported on code.google.com by [email protected] on 16 Feb 2015 at 8:23

Sift serilazing - deserilazing problem


in 
net.semanticmetadata.lire.imageanalysis.sift.Feature.getByteArrayRepresentation 
method
descriptor is a double array. so that SerializationUtils.toBytes(descriptor[0]) 
return 8 bit byte array. but only first 4 byte is using to serilazing and 
deserilazing.

i attached patch code.

Original issue reported on code.google.com by [email protected] on 20 Jan 2015 at 4:36

Attachments:

Lire 0.9.4 beta 2 FieldType.java tokenized ?

1. StringField is not tokenized, no matter stored or not(lucene 4.2.1)
2. line 48 in FieldType.java :private boolean tokenized = true;
3. so, any StringField will be tokenized if display it's filedtype. would some 
mistakes occurs?
4. until lucene 4.8.0 ,keep unchanged .

Original issue reported on code.google.com by [email protected] on 13 May 2014 at 12:21

Sift/Surf/MSER implementations

What steps will reproduce the problem?
1. Run the Lire-demo
2. Index a database
3. Search with SURF BOvW

What is the expected output? What do you see instead?
No results, even though the features were extracted and saved. 

What version of the product are you using? On what operating system?
LireDemo-0.9.4-beta_2.zip on Ubuntu 12.04

Please provide any additional information below.
I tried to work out examples with Sift/Surf/MSER using VisualWordsImageSearcher 
class. But most of the extraction methods are not implemented. I guess the 
search mechanism is different for bang of words kind of features. Can someone 
let me know the status of the aforementioned features and if they are in place, 
how can I make use of them.

regards
Mohit

Original issue reported on code.google.com by [email protected] on 20 Sep 2013 at 12:38

Patch to reduce warnings and Mavenizing the project

This patch includes the fixes to the following issues:

* fixes warnings on used code
* fixes dead code warning
* fixes an obvious null pointer exception in GenericDocumentBuilder
* adds type-safety by removing raw-type usage
* fixed resource leak by closing all streams
* fixed lucene IndexReader.open() deprecation warnings

Hope this helps.

Original issue reported on code.google.com by [email protected] on 26 Jun 2013 at 8:38

Attachments:

java.lang.ArrayStoreException in KMeans

int line 87:
System.arraycopy(descriptor, 0, clusters[i].mean, 0, descriptor.length);

clusters[i].mean is float[], but descriptor is double[], so it will cause 
java.lang.ArrayStoreException

I am use version 0.9.3

Original issue reported on code.google.com by [email protected] on 31 Mar 2014 at 2:28

Patch to upgrade Maven POM

This patch upgrades the Maven POM file for the following:

1. Remove a parsing error by removing '--' from the copyright header and 
replace it with '=='
2. Use a Mavenized and upgraded 'jopensurf' library so as not to rely on system 
dependency
3. Add the WEKA library dependency for preventing missing dependencies

Original issue reported on code.google.com by [email protected] on 11 Dec 2013 at 6:19

Attachments:

LocalBinaryPatterns does not work

net.semanticmetadata.lire.imageanalysis.LocalBinaryPatterns cannot be used (it 
looks like it has been deactivated)

What steps will reproduce the problem?
1. add lire.jar v0.9.5 to a project
2. use the ParallelExtractor to extract the Local Binary Patterns feature from 
a set of images

What is the expected output? What do you see instead?
The extraction process raises a NullPointerException

What version of the product are you using? On what operating system?
Code running under Intellij Idea 13.0.1 on Windows 7 SP1 64 bit

Please provide any additional information below.
The problem lies in net.semanticmetadata.lire.indexing.tools.ParallelExtractor 
where the LocalBinaryPatterns is not added in the member called "features":

    public static final String[] features = new String[]{
            "net.semanticmetadata.lire.imageanalysis.CEDD",                  // 0
            "net.semanticmetadata.lire.imageanalysis.FCTH",                  // 1
            "net.semanticmetadata.lire.imageanalysis.OpponentHistogram",     // 2
            "net.semanticmetadata.lire.imageanalysis.joint.JointHistogram",        // 3
            "net.semanticmetadata.lire.imageanalysis.AutoColorCorrelogram",  // 4
            "net.semanticmetadata.lire.imageanalysis.ColorLayout",           // 5
            "net.semanticmetadata.lire.imageanalysis.EdgeHistogram",         // 6
            "net.semanticmetadata.lire.imageanalysis.Gabor",                 // 7
            "net.semanticmetadata.lire.imageanalysis.JCD",                   // 8
            "net.semanticmetadata.lire.imageanalysis.JpegCoefficientHistogram",
            "net.semanticmetadata.lire.imageanalysis.ScalableColor",         // 10
            "net.semanticmetadata.lire.imageanalysis.SimpleColorHistogram",  // 11
            "net.semanticmetadata.lire.imageanalysis.Tamura",                // 12
            "net.semanticmetadata.lire.imageanalysis.LuminanceLayout",       // 13
            "net.semanticmetadata.lire.imageanalysis.PHOG",                   // 14
    };

I could fix by just adding 
"net.semanticmetadata.lire.imageanalysis.LocalBinaryPatterns" as additional 
entry.

Original issue reported on code.google.com by [email protected] on 20 Apr 2015 at 8:14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.