Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
ColorTools/Distance - 2 つの色のあいだの距離を計算
使い方
Distance(color1, color2)
パラメータ
color1, color2
-
ColorTools で使用できる色形式
説明
このコマンドは、標準の色計量システムの 1 つを使用して 2 つの色のあいだの距離を計算します。 計量は metric オプションに名前を渡して選択します。cie94、cie00、cmc は非可換です。これらの計量では、color1 は参照色で、color2 はサンプル色です。これらの計量では、0.01 より短い距離は、通常 2つの色が区別がつかないことを意味します。
metric オプションが文字列に渡されると、使用される計量はその文字列で表される色空間でのユークリッド距離です。
raw オプションを指定した場合を除き、すべての計量は白と黒のあいだの距離が 1 になるように正規化されます。
オプション
metric : 名前または 文字列。使用できる名前は cie76、cie94 (デフォルト)、cie00、cmc です。使用できる文字列は色空間名です。
raw : このオプションを指定した場合、計量は正規化されません。
互換性
ColorTools/Distance コマンドは Maple 16 で導入されました。
Maple 16 における変更点についての詳細は、Maple 16 の新機能 を参照してください。
例
with(ColorTools):
Distance("Red", "#e00");
Distance("#fe0000", "#ff0000", 'metric'="RGB");
Distance([.99, 0., 0.], [1., 0., 0.], 'metric'="RGB", 'raw');
参照
ColorTools/Color、ColorTools/ColorFormats
Download Help Document