Image Lookup Table Generation
2 ビュー (過去 30 日間)
古いコメントを表示
Is it possible to perform a number of image transform operations on an image and generate a lookup table that maps each original pixel location to its new location? I want to use this LUT output as an input in a different software to mass-process the same pixel reassignment on each frame of streaming video.
0 件のコメント
採用された回答
Walter Roberson
2017 年 9 月 2 日
Provided the transformations only move entries:
temp_img = reshape(1:numels(YourImage), size(YourImage));
Now do your transformation on temp_img . The result will be an array of linear indices:
mapped_idx = Do_all_the_moving_transformations(temp_idx);
example_mapped_image = YourImage(mapped_idx);
another_mapped_image = YourOtherImage(mapped_idx);
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!