Image Lookup Table Generation

조회 수: 2 (최근 30일)
Jon Conger
Jon Conger 2017년 9월 2일
댓글: Jon Conger 2017년 9월 2일
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.

채택된 답변

Walter Roberson
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);
  댓글 수: 1
Jon Conger
Jon Conger 2017년 9월 2일
Thanks! This makes sense. I'll give it a try.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by