Home arrow static arrow Java Programming [Archive] - LookupOp cannot be performed on an indexed image?
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - LookupOp cannot be performed on an indexed image?
This topic has 4 replies on 1 page.

Posts:72
Registered: 6/03/04
LookupOp cannot be performed on an indexed image?  
Jul 28, 2004 5:25 AM



 
Hi!

The following code:

ByteLookupTable blut=new ByteLookupTable(0,data);BufferedImageOp bufiOp = new LookupOp(blut, null);bufiWorld=bufiOp.filter(bufiWorld,null);


outputs the following exception:

java.lang.IllegalArgumentException: LookupOp cannot be performed on an indexed image

What does it mean? How can I avoid it?

Some days ago I performed the same operation to bufiWorld using JAI and it worked...

Thanks in advance.
 

Posts:72
Registered: 6/03/04
Re: LookupOp cannot be performed on an indexed image?  
Jul 28, 2004 9:24 AM (reply 1 of 4)



 
Any idea? Thanks!
 

Posts:72
Registered: 6/03/04
Re: LookupOp cannot be performed on an indexed image?  
Jul 29, 2004 12:13 AM (reply 2 of 4)



 
Please help! Thanks...
 

Posts:123
Registered: 5/24/04
Re: LookupOp cannot be performed on an indexed image?  
Jul 29, 2004 1:50 AM (reply 3 of 4)



 
Stop bumping.
 

Posts:10,972
Registered: 10/23/03
Re: LookupOp cannot be performed on an indexed image?  
Jul 29, 2004 3:51 AM (reply 4 of 4)



 
1. Post questions to the appropriate forum. A question about [url=http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/LookupOp.html]java.awt.image.LookupOp[/url] is almost certainly one for [url=http://forum.java.sun.com/forum.jsp?forum=20]forum Java 2D[/url].
2. And if you were to follow that link to LookupOp, you would read: Images with an IndexColorModel cannot be used.
 
This topic has 4 replies on 1 page.