Questions tagged [indexed]
151 questions
1
vote
0 answers
convert image to Indexed black and white (1-bit) palette linux
I'm trying to convert (several) PNG files to an indexed black and white (1-bit) palette image in linux via a bash script (or C code). If I use Gimp and take menu options Image, Mode, Indexed
I get the "Indexed Colour conversion" dialog and can…

kalpha
- 45
- 7
1
vote
2 answers
Speed up MySQL join to check for duplicates
I'm using the following query to return all duplicate records with the same first and last name. The trick is that the contact_id, has to be in descending order.
The query returns the contacts as expected, but it is just SO SLOW! Takes about 6-8…

Marty Thomas
- 857
- 2
- 9
- 18
1
vote
2 answers
I can't get a value to stay in my $_SESSION variable
I am trying to get values out of an indexed array, but when I use a variable as the index (which is equal to an index in the array), it does not appear. I get an Undefined Index Error. Why is this happening? Does anyone know? Thanks!
I have the…

EGr
- 2,072
- 10
- 41
- 61
1
vote
1 answer
Replace colors in colormap (python 3.7)
I use a simple line to break an indexed image 256 color into palette using
import numpy as np
from PIL import Image
im = Image.open('')
palette = np.array(im.getpalette(),dtype=np.uint8).reshape((256,3))
#####################
Printed result
[[ 1 …

programc7r
- 63
- 6
1
vote
1 answer
Views(Projections) in QLDB
As per QLDB documentation, QLDB provides views(projections) like User, Committed views to query data in it. Are these views are provided from indexed storage? If so, Current and History sections will be part of Indexed storage. Then, why there is a…

Shivaganesh
- 123
- 8
1
vote
1 answer
Add colours to an Index PNG Image using Python
I'm using a program that requires 4bpp indexed images, I'd like to pad my 1bpp and 2bpp images with black palette entries. How would I go about this using Python? I can't see a method of doing it using PIL.

Matt B
- 11
- 1
1
vote
1 answer
Summing vector products in SymPy
The following code computes $\sum_{i=1}^3 x_i y_i$ symbolically first, and then substitutes specific numeric values into the expression to yield a single number. (I've added some lines to show intermediate results as well.)
IPython console for SymPy…

CharV
- 13
- 2
1
vote
1 answer
Indexed color memory size vs raw image
In this article https://en.m.wikipedia.org/wiki/Indexed_color
It says this:
Indexed color images with palette sizes beyond 256 entries are rare. The practical limit is around 12-bit per pixel, 4,096 different indices. To use indexed 16 bpp or more…

mike
- 61
- 4
1
vote
1 answer
C/C++ indexed jump into a set of NOPs
I want to produce delays with a one clock resolution so my thoughts are to have 255 NOPs one after the other and then jump to the last one minus the delay required. So 0 would jump past the last NOP, 1 to the last NOP, and 255 to the first…

Mike Bryant
- 310
- 2
- 12
1
vote
1 answer
Move address to register by using the indexed addressing mode
Is it possible to calculate an address by using the indexed addressing mode syntax and store it into a register? Something like the following (wrong) expression (in AT&T assembly syntax):
movl $dataarray(,%edi,8), %eax
I know that the indexed…

cppstudy
- 323
- 4
- 21
1
vote
2 answers
Understanding indexed view update qnd query process in SQL Server 2008 R2
I created indexed view (clustered unique index on Table1_ID) view with such T-SQL:
Select Table1_ID, Count_BIG(*) as Table2TotalCount from Table2 inner join
Table1 inner join... where Table2_DeletedMark=0 AND ... Group BY Table1_ID
Also after…

arena-ru
- 990
- 2
- 12
- 25
1
vote
2 answers
Understanding column type in indexed view in SQL Server 2008 R2
We created an indexed view by such sql:
Select Table1_ID, Count_BIG(*) as Table2TotalCount from Table2 inner join
Table1 inner join... where...
Also after creating the view, we set clustered unique index on column Table1_ID.
So View consists of two…

arena-ru
- 990
- 2
- 12
- 25
1
vote
1 answer
2 dimensional table with indexing by string(object)
I've got a problem i need to create 2 dimensional table which will be indexed by string for example:
table["London","Cambridge"] = 120;
or jagged:
table["London"]["Cambridge"] = 120;
How to declare Collection or array that can handle this?
I found…

MaciejLisCK
- 11
- 1
1
vote
1 answer
Indexed File Error
I'm trying to open a file as indexed but keep getting the following error. From all the examples of COBOL code that I could find I can't see where my error is.
I am able to open the file as sequential just fine. It seems to be something with…

Iron3eagle
- 1,077
- 7
- 23
1
vote
3 answers
What does it mean by "JavaScript objects can be indexed by strings"?
var people = new Array();
function People (name, location, age){
this.name = name;
this.location = location;
this.age = age;
}
I have two other functions to generate the people and load them into a table.
function…

Yamenstein
- 19
- 2