フィルターのクリア

When chromaticity diagram meets a line

2 ビュー (過去 30 日間)
Salad Box
Salad Box 2022 年 4 月 4 日
回答済み: Image Analyst 2022 年 4 月 5 日
Hi,
I used Matlab to plot a chromaticity diagram, then I plotted a line with a function y=ax+b with known a and b.
I am just wondering for the two points p1 and p2 where the line meets the chromaticity diagram, how to get the x and y values of p1 and p2?

採用された回答

John D'Errico
John D'Errico 2022 年 4 月 4 日
  1. Describe the diagram border as a polygon. That just means you need to get the sequence of points on the boundary, IN SEQUENCE, as a closed curve.
  2. Use a tool like Doug Schwarz's intersections code, as found on the file exchange.
  1 件のコメント
Salad Box
Salad Box 2022 年 4 月 5 日
I found that very useful. Thank you!

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2022 年 4 月 5 日
Try diving into the code:
>> edit plotChromaticity.m
See what you can learn from that.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by