I have been using pdfimages to extract images from PDFs. It extracts all of following types of images
image - an opaque image
mask - a monochrome mask image
smask - a soft-mask image
stencil - a monochrome mask image used for painting a color or pattern
How can I extract only opaque type images and exclude mask, smask and stencil images?