フィルターのクリア

How to remove objects in diferent pics if they have diferent pdi

1 回表示 (過去 30 日間)
Gytis Raudonius
Gytis Raudonius 2015 年 10 月 18 日
回答済み: Walter Roberson 2015 年 10 月 19 日
So question is if i fave recantgle and i want to remove objects who area is lower than 0,45 cm2 and biger 5,5 cm2. I know that i can do with UL and UB but it doesnt work if have diferent pics with diferent pdi

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 10 月 19 日
Presuming that pdi is ppi, pixels per inch, then 1/ppi is inches per pixel, and 2.54/ppi is cm per pixel. From there, (2.54/ppi)^2 is cm^2 per pixel^2, which is 6.4516/ppi^2 with units cm^2 per pixel^2.
Then, 0.45 cm^2 / (6.4516 cm^2 / ppi^2) = 0.069750139500279 * ppi^2 gives the number of square pixels for 0.45 cm^2. For example for 75 ppi then it would be about 392.3 square pixels, which is between 19x19 and 20x20

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by