def generateImageArrayNum(imageId):
    matchesNum, matchesMean = getMathes(imageId)

    matchesNum = matchesNum[:24]

    imageArrayNum = emptyNum
    r = 0
    c = 0

    for row in hardCodedArray:
        c = 0
        for col in row:
            if col == 0:
                centralImage = imagesHandler.getImage(imageId)
                imageArrayNum[r][c] = centralImage

            else:
                # print 'pos:', r,c, 'id ',  col-1
                #  print 'pos:', r,c, 'is getting image ',  str(matchesNum[col-1][1])
                imgNum = imagesHandler.getImage(str(matchesNum[col - 1][1]))
                imageArrayNum[r][c] = imgNum
            c = c + 1
        r = r + 1

    return imageArrayNum
def generateImageArrayNum(imageId):
    matchesNum, matchesMean = getMathes(imageId)

    matchesNum = matchesNum[:24]

    imageArrayNum = emptyNum
    r = 0
    c = 0

    for row in hardCodedArray:
        c = 0
        for col in row:
            if col == 0:
                centralImage = imagesHandler.getImage(imageId)
                imageArrayNum[r][c] = centralImage

            else:
                # print 'pos:', r,c, 'id ',  col-1
                #  print 'pos:', r,c, 'is getting image ',  str(matchesNum[col-1][1])
                imgNum = imagesHandler.getImage(str(matchesNum[col - 1][1]))
                imageArrayNum[r][c] = imgNum
            c = c + 1
        r = r + 1

    return imageArrayNum
def generateImageArrayMean(imageId):
    matchesNum, matchesMean = getMathes(imageId)

    imageArrayMean = emptyMean
    r = 0
    c = 0

    for row in hardCodedArray:
        c = 0
        for col in row:
            print col
            if col == 0:
                centralImage = imagesHandler.getImage(imageId)
                imageArrayMean[r][c] = centralImage

            else:
                print "pos:", r, c, "is getting image ", str(matchesMean[col - 1][1])
                imgMean = imagesHandler.getImage(str(matchesMean[col - 1][1]))
                imageArrayMean[r][c] = imgMean
            c = c + 1
        r = r + 1

    return imageArrayMean
def generateImageArrayMean(imageId):
    matchesNum, matchesMean = getMathes(imageId)

    imageArrayMean = emptyMean
    r = 0
    c = 0

    for row in hardCodedArray:
        c = 0
        for col in row:
            print col
            if col == 0:
                centralImage = imagesHandler.getImage(imageId)
                imageArrayMean[r][c] = centralImage

            else:
                print 'pos:', r, c, 'is getting image ', str(matchesMean[col -
                                                                         1][1])
                imgMean = imagesHandler.getImage(str(matchesMean[col - 1][1]))
                imageArrayMean[r][c] = imgMean
            c = c + 1
        r = r + 1

    return imageArrayMean