Path: utzoo!attcan!utgpu!watmath!iuvax!cica!tut.cis.ohio-state.edu!rosenbl From: rosenbl@cis.ohio-state.edu (Robert Rosenblum) Newsgroups: comp.graphics Subject: help with quick color map search Message-ID: <67563@tut.cis.ohio-state.edu> Date: 19 Oct 89 19:17:27 GMT Sender: rosenbl@tut.cis.ohio-state.edu Lines: 23 I'm writing an application which involves taking a given rgb value and finding the color in the color map which is closest. My routine performs a linear search through the color map, comparing the "distance" between my rgb value and each color map entry, and the index of the closest color is returned. However, this technique is very slow. Is there is a more efficient way to find the closest color in a color map? Any help would be greatly appreciated. Thanks in advance..... Rob Rosenblum Rob Rosenblum The Ohio State University Department of Computer and Information Science 2036 Neil Ave. Columbus OH USA 43210-1277 rosenbl@cis.ohio-state.edu or ...!osu-cis!cis.ohio-state.edu!rosenbl