Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata Extraction #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NaimulHassan
Copy link

No description provided.


%% Crop metadataRef with Same ROI
metadata = imread([refPath '\metadataRef.png']);
metadata=imcrop(metadata,[115 185 1900-115 540-185]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see where this is being used anymore. You should add something like this after the metadata imcrop.
metadata = imbinarize(rgb2gray(metadata));
img(~metadata) = 255; %% making everything other than the omr points of interest white
img = ~imbinarize(rgb2gray(img)); %% now you have only the omr blobs as white in the img

medium= s{4,2};
division= s{5,2};

age_crop=imcrop(img,[age(1)+50 age(2) 105 45]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output of this function should be something like this:
age = '18-25'
gender = 'Other'
dom_hand = 'Left'

not image crops. This metadata will be directly appended to a csv file in the pipeline.

@@ -0,0 +1,72 @@
function [age_crop, gender_crop, dominant_hand_crop, medium_crop, division_crop]= metadataExtraction(scanned_img, refPath)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the function should take the registered image and metadata reference image as input, and output exact metadata information (gender = 'other'), not image crops.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function will be placed inside extract.m right after surfAlignGPU is performed. So you'll already have the registered image by then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants